Spawning Objects

I would like to spawn objects in the world. I am attempting to use UWorld::SpawnActor() to no avail.

bullet = ()->SpawnActor<ABullet::ABullet>(ABullet::StaticClass());

basically I am trying to spawn an actor class I have created In another class.

I have looked up my very question and it does not seem the exact situation has been asked about.

Am I on the right track or what.

Thanks

That won’t work, reflection system does not support inner classes, instead you should use inference if you want to create common type of objects. Also when SpawnActor() fails it prints reason in the log, you can find it in Saved/Log and in “Output” (or was it console log?) window.

Solved it thanks!

I figured this out thank you.
I had an inclusion issue.