Hi, I am not English native speaker, I am sorry if my description of the issue is not enough.
The issue is about the usage of UPROPERTY with components.
I wanna to manage my components with TArray, but it happen something wrong.
In my c++ header file:
UPROPERTY(VisibleAnywhere) TArray<USceneComponent*> TestArray;
In my c++ file:
for (int32 count = 0; count < 9; ++count) { FString name = FString::Printf(TEXT(“Test%d”), count); FName testName = FName(name); USceneComponent unit = CreateDefaultSubobject<USceneComponent>(testName); unit->SetupAttachment(sceneRoot); TestArray.Add(unit); }
In the BP inherited from above C++ file: Imgur: The magic of the Internet
why it doesnt show anything in the detail.