How to spawn a BP actor from a string path?

andrew-r-lukasik
Mon, 11 Oct 2021 17:57:11 +0000
Blueprint

Q: I want to spawn blueprint actors by their file path, but how to do that exactly?

I found this [GetAssetbyObjectPath][1] action. I give it a valid path ( /Game/MyDir/MyClass.MyClass) and it gives me a object reference. When I call GetAsset and GetClass on it - it prints Blueprint… where I expected an Actor or Object. How to make this work, any ideas?

2 posts - 1 participant