The dynamic loading of some resources fails when a map is packaged separately. The error log is as follows:
[2022.06.16-09.06.47:875][ 0]LogStreaming: Error: Couldn't find file for package /SarajePlayerUI/UI/WBP_SarajePlayerRecommendBar requested by async loading code. NameToLoad: /SarajePlayerUI/UI/WBP_SarajePlayerRecommendBar
[2022.06.16-09.06.47:875][ 0]LogStreaming: Error: Found 0 dependent packages...
[2022.06.16-09.06.47:875][ 0]PIE: Error: CreateWidget called with a null class.
This problem is very strange. In the self-developed plug-in directory, other resources can be loaded with c++ code, but only the following materials cannot be loaded successfully:
UClass* WidgetClass = LoadClass<UUserWidget>(nullptr, TEXT("WidgetBlueprint'/SarajePlayerUI/UI/WBP_SarajePlayerPreview.WBP_SarajePlayerPreview_C'"));
Solution:
Add the directory where the resource is located in Additional Asset Directories to Cook of packaging settings (screenshot as below):
Read More:
- [Solved] UE4UE5 Package Android Error: UnrealBuildTool failed
- [Solved] Could not find a package configuration file provided by “moveit_core“
- [Solved] UE4 Error: Serial loading Unknown structure
- UE4 Package Pico Project Error: error: ‘Resource‘ is a private member of ‘FOpenGLTextureBase‘
- [Solved] UE4 Android Package Error: cmd.exe failed with args
- [Solved] UE4 Android Package Error: failed for task :permission_library:compileDebugJavaWithJavac
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- Template argument deduction/substitution failed: couldn‘t deduce template parameter [How to Solve]
- if a proxy or similar is necessary `net.git-fetch-with-cli`, Rust Complete `Couldn‘t resolve host name (Coul
- [How to Fix]Unable to find the requested Boost libraries
- [Go] Solve can’t load package: cannot find module providing package github.com/xxxxx
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- RuntimeError: ONNX export failed: Couldn‘t export operator aten::upsample_bilinear2d
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- [step on the pit] idea submits the code to GitHub and prompts 403 — the requested URL returned error: 403
- laravel Error mews/captcha is locked to version 3.2.4 and an update of this package was not requested.
- [Solved] ./my_cmake_exe: error while loading shared libraries: libswresample.so.4: cannot open shared object file: No such file or directory
- [Solved] Jmeter Error: Error loading results file – see file log
- Yarn add package loading error: operation not permitted, unlink …
- [Solved] Error: Cannot fit requested classes in a single dex file (# methods: 149346 > 65536)