Hi~all.Here is the thing.
I packaged some uasset into a .pak file and then try to load it during runtime.
When I am in the editor mode,everything work fine.I can mount the pak file and load the resources inside it.
However,When I package project using Win64.I can mount the pak file but cannot load the resources inside it…
What surprise me most is that if I run the code in the Class Constructer,I can load the resources in pak file.But if
I run the code in BeginPlay() or other function,it doesn’t work…It’s really werid…
I had checked the log file. It said that the pak file contains editor only data.I have cooked the uasset before i
packaged it into the pak file…
I’ll be glad to hear any response…
Log:
[2016.10.29-03.50.21:915][ 0]LogClass: Mount Success
[2016.10.29-03.50.21:915][ 0]LogLinker:Warning: Unable to load package (…/…/…/Engine/Content/M_AssetPlatform.uasset). Package contains EditorOnly data which is not supported by the current build.
[2016.10.29-03.50.21:915][ 0]LogLinker:Warning: Unable to load package (…/…/…/Engine/Content/M_AssetPlatform.uasset). Package contains EditorOnly data which is not supported by the current build.
[2016.10.29-03.50.21:915][ 0]LogUObjectGlobals:Warning: Failed to find object ‘Object /Engine/M_AssetPlatform.M_AssetPlatform’
[2016.10.29-03.50.21:915][ 0]LogStreamableManager: Failed attempt to load /Engine/M_AssetPlatform.M_AssetPlatform
[Here is the Code][1]
Thanks
[1]: 112911-code.txt (2.01 KB)