Transform Position not visible in details panel

Greetings,
I added a C++ Box Component to a parent class A
C++ class B inherits from A
Blueprint class F is based on C++ B class

in class A there’s a C++ Box Component Added to it.

UPROPERTY(VisibleDefaultsOnly, Category = "Cat")
	UBoxComponent* BoxComp;

And initlized like

      A::A(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer){
FacingWallTestComp = ObjectInitializer.CreateDefaultSubobject<UBoxComponent>(this, "BoxComponent");

It appears in the blueprint viewer like this

67170-capture.jpg

I cannot edit it’s position through the details panel., However I can drag/scale it using the viewport.

1 Like

Hello,

The reason that you cannot edit the Transform is because you made it VisibleDefaultsOnly. I created a box component and set it to EditAnywhere and it allowed me to edit the Transform inside of the blueprint. Also, EditDefaultsOnly allows you to edit the transform. Give one of these a shot and see if that’s the behavior you’re looking for.

Well, this was not the solution, when I modified it to be EditAnywhere , I just showed me a drop-down list which shows a preinstantiated box component (seems logic in fact, a pointer to instantiated component that could be edited)
The solution to my problem was to attach the box component’s parent to the Root Component
FacingWallTestComp->AttachParent = GetRootComponent();

lol … didn’t know that a comment can be transformed into an answer :smiley: