It works well when launched from the editor, but when it comes to packaged game i get various and seemingly random results (working well / object not spawning but game going on / game crash).
In all cases, the error seems to be an access violation.
So my question is: am i doing this correctly ?
If no, what is the correct way ?
Is there any option i should use in editor or in my code or in the configuration files ?
I have already set bDontLoadBlueprintOutsideEditor=false in the DefaultEditor.ini (and made a request so it’s set to false by default when creating a project). Anything else ?
Ok, anyone reading this, here is how it should be done, copied from here:
It’s true by default because Blueprints are not needed outside the editor.
It looks like you’re attempting to access the Blueprint generated class through the Blueprint itself. Rather, you should just reference the class directly.
For Blueprint’/Game/dice/D4_Dice_BP.D4_Dice_BP’
The class reference is Class’/Game/dice/D4_Dice_BP.D4_Dice_BP_C’