Announcement

Collapse
No announcement yet.

Native BluePrint not showing some properties

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    Click image for larger version

Name:	two.jpg
Views:	1
Size:	116.9 KB
ID:	1142422

    Editor BluePrint
    Click image for larger version

Name:	one.JPG
Views:	1
Size:	124.1 KB
ID:	1142423

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

    Comment


      #3
      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.
      Code:
      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);
      };
      Code:
      AMyActorCpp::AMyActorCpp(const FObjectInitializer& ObjectInitializer)
      	:Super(ObjectInitializer)
      {
      	SphereComponent = ObjectInitializer.CreateDefaultSubobject<USphereComponent>(this, TEXT("Sphere Component"));
      	SphereComponent->InitSphereRadius(250.0f);
      
      	RootComponent = SphereComponent;
      }

      Comment

      Working...
      X