I already searched the whole day on how to spawn a Blueprint from C++ and I have found a few answers.
However, nothing described there works for me, maybe because the answers are already a few month old.
It would be very nice if someone could give me an example on how to do it. Thanks a lot!
Did you already try using ConstructorHelpers::FClassFinder,
then use ()->SpawnActor to spawn your blueprint?
What blueprint did you actually want to spawn? An actor, component, or UObject?
You can also put this into consideration when you want to access your blueprint
On what version of the engine are you? I do it often by exposing a TSubclassOf public property and then using ()->SpawnActor or the spawning function of UGameplayStatics.
I use 4.6. The ConstructorHelpers::FClassFinder is used to get the class of the blueprint I want to spawn. Then, we pass the class as argument to the SpawnActor.
If you already use the TSubClassOf and set the value of the variable, and set the ActorSpawnParameters, it should be spawned. Maybe the location of spawn is far from your Character.
As far as I know,
I can only use ConstructorHelpers in my Constructor, right? But I want to spawn them outside of the Constructor.
My blueprint was created from a custom class, which is an AActor.