Unreal declare ActorComponent in c++ not show in detail panel
UCLASS(config = Game, Blueprintable)
class PROCEDURALLEGCRAWL_API AProceduralCrawlActor : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "Leg")
float a;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Leg")
TObjectPtr<UStaticMeshComponent> Thigh;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Leg")
TObjectPtr<UStaticMeshComponent> Knee;
UPROPERTY(EditAnywhere, Category = "StepConfig", meta = (ClampMin = 0.01f))
float StepTime;
......
private:
float PlantLocation;
};
I Just want declare an ActorComponent, then the detail panel show it, just like a variable.