Property Specifiers for Object within TArray



VisibleDefaultsOnly


Is Read-Only. If you want users to modify them then you need:



EditDefaultsOnly


You can also add in “EditFixedSize” if you don’t want them to be able to add/remove entries from the array.

Also, avoid STL containers like std::string when possible, just use FText or FString, they have all printf and such in there.



for(int i =0; i < WheelPairs; ++i)
{
    VisualMeshComp.Add(CreateDefaultSubobject<UStaticMeshComponent>(FString::Printf(TEXT("SuspComp_%d"), i));
}