Note that CreateDefaultSubobject should only be used in the constructor, and GetWorld()->SpawnActor(MyClass::UStaticClass(), Location, Rotation) should be used elsewhere. Goes something like this, syntax not exact, but enough to know what I’m referring to.
1 Like