Spawning an actor from just the path in c++
I've seen a bunch of similar questions but every one has a different or slightly-outdated answer. I know I can use a list of class references to do this without strings, but humour me.
The following works, but only in the editor. In a win64 build, the checkf fails:
I've added the Cas directory to "Additional Asset Directories to Cook" in the project's Packaging settings, but I know this block is already used in the level anyway.
I've also tried using my own FStreamableManager, using ResolveObject() on the FSoftObjectPath, and using EngineUtils::FindOrLoadAssetsByPath to similar non-effects.
I've also tried with this approach, which also fails in builds but works in the editor:
...which is weird because I've used that elsewhere in the codebase to load textures.
What else can I try? What more info can I give you?
For a blueprint you'd want to use
So maybe something like this, I think:
answered Jan 04 '19 at 11:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here