Adding a new component in code does not show all editable options in the details panel.
Ex:
When a sphere component is added to a class, the Transform category will only list the Scale. Location and Rotation do not show up in the details panel.
Workaround:
Closing and reopening the project will usually cause missing elements to return
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = test) USphereComponent* MySphere;
MySphere = CreateDefaultSubobject<USphereComponent>(TEXT("MySphere"));
MySphere->SetupAttachment(RootComponent);
Result:
only Scale shown inside Transform section of the details
Expected:
Location and Rotation are editable after adding component
Head over to the existing Questions & Answers thread and let us know what's up.
7 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.15.2, 4.16 |
Created | May 4, 2017 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |