I’ve been using UE5 with Blueprints for about a year now, and have just started a new project using C++. I’m pretty new to C++ (I come from Unity) and I have a question.
I have a class “CPP_Bullet” which is a C++ actor class and the parent to BP_Bullet. This line spawns the BP_Bullet actor into the world:
From that actor I need to be able to access the CPP Class in order to set properties of the bullet. Is there anyway I can get/cast the CPP class from the Actor, or an alternative I should be using instead?
I think that’s unrelated to the spawning. Something in the bullet is likely causing a crash. Try disabling anything that happens on creation (ie the rest of the spawning function, constructors, begin play, and overlap events).
If none of that is the problem, launch the editor in debug mode via your IDE. I use Rider, so I’m not sure how good the debug mode on alternatives are, but it’ll probably help.