Spawning a blueprint from FSoftObjectPath ?
I used a FStreamableManager to load a Tarray of FSoftObjectPath.
Now i'm in the delegate and would like to spawn those loaded objects.
They are all blueprint assets.
The problem is that when trying to get the class for the UWorld::SpawnActor function, the only thing i could find was this:
But this always gives the same class "Blueprint", and SpawnActor doesn't want to spawn that.
Any advice on how i should proceed ?
asked Nov 23 '17 at 10:02 PM in C++ Programming
Hi. You just need to take this UBlueprint class (if it is valid) and check it's GeneratedClass member. There will be a class you really need. But this can be null when blueprint is not properly compiled (And you can't spawn an object if it's happened).
answered Nov 23 '17 at 10:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here