[Closed] StaticLoadObject doesn't work in a packaged game.
I want to create an Actor in C++, and this Actor is defined with Blueprint.
So, I tried this code below.
It works fine when I run this in the UE4Editor.
But in a packaged game, StaticLoadObject() returns NULL.
In addition, I could create this Actor from Blueprint-to-C++ function like this in the same packaged game.
So, I think 'TestCharacter Actor' is cooked and included in a game package.
I'm using UE 4.10.1, and packaged for Windows 64bit.
Could you give me some advices?
Thanks in advance.
The question has been closed Mar 03 '16 at 09:09 PM by Stephen Ellis for the following reason:
The question is answered, right answer was accepted
Blueprints are defaulted to be stripped out when cooking. This can be overridden in the DefaultEditor.ini file by changing "bDontLoadBlueprintOutsideEditor" from true to false. After making this change and packaging again the result in the packaged version should match what is seen in the editor / standalone.
answered Mar 03 '16 at 09:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here