Hi guys,
I’m following the [chess tutorial] (A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums) using blueprints and now, for learning purposes, trying to “translate” it to C++.
My problem now (at the very beginning :p) is how can I instantiate static mesh components using a for loop?
for (int numberOfSquares = 0; numberOfSquares < 64; numberOfSquares++)
Should I create 64 UStaticMeshComponents one by one?
UStaticMeshComponent* squareMeshxx = CreateDefaultSubobject(TEXT(“squareMeshxx”));
or can I use an array of UStaticMeshComponents? If yes, how?