I am pulling my hair out right now. Nobody seems to want to answer this question on the “AnswerHub” so I’m posting it here.
I have several StaticMesh variables that I need to spawn into the world via CPP code and NOTHING I am attempting to do is working. I cannot believe something like this is seemingly so impossible to do!
PLEASE! This is my last hurdle to getting my prototype up and running and I’m at my wit’s end. I’m going through the docs and trying every variation of SpawnActor that I can think of, and NOTHING is working for me. I get nothing to actually spawn (that is when I’m not actually getting compile errors due to my usage, which I HAVE NO IDEA BECAUSE I’M NOT FINDING ANY USEFUL INFORMATION!!)
Forgive me if I seem a bit upset, but I am. This seems like it should be one of the easiest things to accomplish, so why have I wasted a WEEK trying to get a simple mesh spawned into the world at a specific location through C++ code without success??
I have a UStaticMesh * mesh; variable that I need to spawn many instances of at different locations. What magical functions am I missing?