I’ve decided (after having too many problems with attempting to recreate my code in BP) that I’m going to stick with C++ coding. It’s much quicker and easier for me than the BP system for most things. However, I’m at a point where I need to be able to create a Static Mesh variable in my C++ class that I can access through the editor and choose from the Static Meshes that are loaded into the system.
I attempted:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Geometry")
AStaticMeshActor* FloorMesh;
But when I bring down the drop-down list in the editor, I’ve got nothing, even though the Starter Content is loaded and I should have the “Floor_400x400” available to me.
I’m sure I’m doing this completely wrong. I’ve been searching through the docs, and online, but can’t find any answers to this particular problem, so I’ve just been trying to flub my way to a solution–a strategy that’s not working out this time. Any help would be greatly appreciated.
ALSO, when it comes time to actually do the spawning of the geometry, what is the best way to do it? UWorld::SpawnActor? or is there some other way?
Thanks!