Hello everyone ! Use StreamableManager load texture and materials work well in editor, Now i packaging success, but run the pakege file get "fatal error! ". The following is the log……
[2018.06.05-03.08.45:928][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo01
requested by async loading code. NameToLoad: /Game/Textures/Main/Logo01
[2018.06.05-03.08.45:928][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:928][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo02 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo02
[2018.06.05-03.08.45:928][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo03 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo03
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo04 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo04
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo05 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo05
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo06 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo06
[2018.06.05-03.08.45:929][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo07 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo07
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo08 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo08
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo09 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo09
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Textures/Main/Logo10 requested by async loading code. NameToLoad: /Game/Textures/Main/Logo10
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Couldn’t find file for package /Game/Materials/Main/Button requested by async loading code. NameToLoad: /Game/Materials/Main/Button
[2018.06.05-03.08.45:930][ 0]LogStreaming: Error: Found 0 dependent packages…
[2018.06.05-03.08.45:931][ 0]LogStreamableManager: Failed attempt to load /Game/Materials/Main/Button.Button
[2018.06.05-03.08.45:931][ 0]LogStreamableManager: Failed attempt to load /Game/Textures/Main/Logo01.Logo01
My code:
//.............................. Call ............................
UTexture* tex =Cast(LoadObject("UTexture'/Game/Textures/Main/Logo01.Logo01'"));
UMaterial*mat=Cast(LoadObject("UMaterial'/Game/Materials/Main/Button.Button'"));
//…….............................................................
//...............................Function........................
UObject* AMainMenu::LoadObject(FString APath)
{
FStreamableManager* stream = new FStreamableManager;
FStringAssetReference ref(APath);
UObject* Asset =stream->SynchronousLoad(ref);
return Asset;
}
Please give me some help, thanks very much!!!