View Issue Details

IDProjectCategoryView StatusLast Update
0004112NoesisGUIUnrealpublic2025-04-28 11:54
Reportertuwi Assigned Tohcpizzi  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.7 
Target Version3.2.8Fixed in Version3.2.8 
Summary0004112: Error when running World Space UI on mobile VR (Vulkan)
Description

We ran into problem with World Space UI component. It works using in editor. But when compiling and running on mobile VR (Pico4). We get

[2025.04.25-08.33.43:111][ 0]LogStreaming: Warning: LoadPackage: SkipPackage: /NoesisGUI/WorldUI (0x75CF06BD21032FD7) - The package to load does not exist on disk or in the loader
[2025.04.25-08.33.43:111][ 0]LogUObjectGlobals: Warning: Failed to find object 'NoesisXaml /NoesisGUI/WorldUI.WorldUI'
[2025.04.25-08.33.43:112][ 0]LogNoesis: Warning: Noesis View /Game/WorldSpaceUI.WorldSpaceUI:NoesisInstance_2147482469 doesn't have a valid XAML. Please recompile.

TagsNo tags attached.
PlatformAndroid

Activities

hcpizzi

hcpizzi

2025-04-28 11:52

developer   ~0010542

This patch should fix the issue with the missing xaml on packaged builds.

4112.patch (2,736 bytes)   
Index: NoesisEditor/Private/NoesisEditorModule.cpp
===================================================================
--- NoesisEditor/Private/NoesisEditorModule.cpp	(revision 15399)
+++ NoesisEditor/Private/NoesisEditorModule.cpp	(working copy)
@@ -345,6 +345,7 @@
 		if (IsRunningCookCommandlet())
 		{
 			FixNoesisXamlDependencies();
+			GetDefault<UNoesisSettings>()->LoadWorldUIXaml();
 		}
 	}
 
Index: NoesisRuntime/Classes/NoesisSettings.h
===================================================================
--- NoesisRuntime/Classes/NoesisSettings.h	(revision 15399)
+++ NoesisRuntime/Classes/NoesisSettings.h	(working copy)
@@ -126,11 +129,19 @@
 	UPROPERTY(EditAnywhere, Config, Category = "Editor Settings")
 	bool PremultiplyAlpha;
 
+	UPROPERTY()
+	FSoftObjectPath WorldUIXaml;
+
 	void SetLicense() const;
 	void SetApplicationResources() const;
 	void SetFontFallbacks() const;
 	void SetFontDefaultProperties() const;
 
+	class UNoesisXaml* LoadWorldUIXaml() const;
+
 #if WITH_EDITOR
 	virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
 #endif
Index: NoesisRuntime/Private/NoesisInstance.cpp
===================================================================
--- NoesisRuntime/Private/NoesisInstance.cpp	(revision 15399)
+++ NoesisRuntime/Private/NoesisInstance.cpp	(working copy)
@@ -72,6 +72,7 @@
 #include "NoesisXaml.h"
 #include "NoesisSupport.h"
 #include "Extensions/BackgroundImage.h"
+#include "NoesisSettings.h"
 
 #if WITH_COMMON_UI
 // CommonInput includes
@@ -1107,7 +1108,7 @@
 	}
 
 	NoesisInstance = NewObject<UNoesisInstance>(World);
-	NoesisInstance->BaseXaml = LoadObject<UNoesisXaml>(nullptr, TEXT("/NoesisGUI/WorldUI.WorldUI"));
+	NoesisInstance->BaseXaml = GetDefault<UNoesisSettings>()->LoadWorldUIXaml();
 	NoesisInstance->Init3DWidget(World);
 
 	return NoesisInstance;
Index: NoesisRuntime/Private/NoesisSettings.cpp
===================================================================
--- NoesisRuntime/Private/NoesisSettings.cpp	(revision 15399)
+++ NoesisRuntime/Private/NoesisSettings.cpp	(working copy)
@@ -40,6 +40,8 @@
 	BindingLogLevel = ENoesisLoggingSettings::Warning;
 	ReloadEnabled = true;
 	PremultiplyAlpha = true;
+
+	WorldUIXaml = FSoftObjectPath("/NoesisGUI/WorldUI.WorldUI");
 }
 
 void UNoesisSettings::SetLicense() const
@@ -194,6 +196,11 @@
 	Noesis::GUI::SetFontDefaultProperties(Size, Weight, Stretch, Style);
 }
 
+class UNoesisXaml* UNoesisSettings::LoadWorldUIXaml() const
+{
+	return Cast<UNoesisXaml>(WorldUIXaml.TryLoad());
+}
+
 #if WITH_EDITOR
 void UNoesisSettings::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
 {
4112.patch (2,736 bytes)   

Issue History

Date Modified Username Field Change
2025-04-28 10:09 tuwi New Issue
2025-04-28 11:21 jsantos Target Version => 3.2.8
2025-04-28 11:21 jsantos Assigned To => hcpizzi
2025-04-28 11:21 jsantos Status new => assigned
2025-04-28 11:52 hcpizzi Note Added: 0010542
2025-04-28 11:52 hcpizzi File Added: 4112.patch
2025-04-28 11:54 jsantos Status assigned => resolved
2025-04-28 11:54 jsantos Resolution open => fixed
2025-04-28 11:54 jsantos Fixed in Version => 3.2.8