UPROPERTY(Instanced,VisibleAnywhere, Category = "My Component", BlueprintReadWrite)
TObjectPtr<UMyActorComponent> Component;
inside of the component’s header example uproperties (the pipe | gives sub categories)
UPROPERTY(EditAnywhere,BlueprintReadWrite,Category="My Component|Settings", meta=(AllowPrivateAccess=true))
float TraversalSpeed = 100.0f;
UPROPERTY(EditAnywhere,BlueprintReadWrite,Category="My Component|Settings", meta=(AllowPrivateAccess=true))
float JumpHeight = 5.0f;
Make sure to create the component in the CDO
in my case
Component = CreateDefaultSubobject<UMyActorComponent>(TEXT("My Component"));
