Download

Native BluePrint not showing some properties

Hi,

I have created a class from c++ with a USphereComponent visible to BluePrints. I’ ve also created another BluePrint with no custom code from the editor, just inherit from Actor, and in this i’ve created SphereComponent.

I want setup the Physics Properties in the SphereComponent of my Custom c++ BluePrint, But when I go to the details tab the i can’t find the Physics group, Why is this?

Native BluePrint
84d685719930c98712dc81d7dec7647dcbdcf979.jpeg

Editor BluePrint
560011f6b0a51f1bfd472169af10f9a8294fbef3.jpeg

Did you remember to set the UPROPERTY category to “Physics”? If not, you might find it under “Default” within the editor.

May be i wasn’t clear in my question. I want to setup the Physics properties in my USphereComponent, like the property Simulate Physics, but as i said this properties tab is not present.

This is the code for my class.



UCLASS()
class MYPROJECT_API AMyActorCpp : public AActor
{
	GENERATED_BODY()
	
protected:
	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (AllowPrivateAcces = "true"))
	class USphereComponent* SphereComponent;

public:
	USphereComponent* GetSphereComponent() const { return SphereComponent; }

	AMyActorCpp(const FObjectInitializer& ObjectInitializer);
};




AMyActorCpp::AMyActorCpp(const FObjectInitializer& ObjectInitializer)
	:Super(ObjectInitializer)
{
	SphereComponent = ObjectInitializer.CreateDefaultSubobject<USphereComponent>(this, TEXT("Sphere Component"));
	SphereComponent->InitSphereRadius(250.0f);

	RootComponent = SphereComponent;
}