Hi,
When building and running standalone project I’m getting following ArgumentNullException. Before that I’m getting errors that uss files cannot be found.
Is it a known issue, or am I doing something wrong?
Thanks.
Style sheet not found for path "Assets/DLT/UI (UI Toolkit)/Uxml/USS/MT-ToolsUSS.uss"
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
UnityEngine.UIElements.VisualElement:AddStyleSheetPath(String) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualElementStyleAccess.cs:56)
UnityEngine.UIElements.VisualTreeAsset:AssignStyleSheetFromAssetToElement(VisualElementAsset, VisualElement) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:604)
UnityEngine.UIElements.VisualTreeAsset:CloneTree(VisualElement, Dictionary`2, List`1) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:314)
UnityEngine.UIElements.UxmlTraits:Init(VisualElement, IUxmlAttributes, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\TemplateContainer.cs:72)
UnityEngine.UIElements.UxmlFactory`2:Create(IUxmlAttributes, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\UxmlFactory.cs:306)
UnityEngine.UIElements.VisualTreeAsset:Create(VisualElementAsset, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:580)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:354)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:397)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:397)
UnityEngine.UIElements.VisualTreeAsset:CloneTree(VisualElement, Dictionary`2, List`1) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:329)
UnityEngine.UIElements.VisualTreeAsset:Instantiate() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:197)
UnityEngine.UIElements.UIDocument:RecreateUI() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\GameObjects\UIDocument.cs:416)
UnityEngine.UIElements.UIDocument:OnEnable() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\GameObjects\UIDocument.cs:315)
ArgumentNullException: Value cannot be null.
Parameter name: shader
at (wrapper managed-to-native) UnityEngine.Material.CreateWithShader(UnityEngine.Material,UnityEngine.Shader)
at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00008] in <1bcd79d45cd74590b726c010430e0a7b>:0
at UnityEngine.UIElements.UIR.UIRenderDevice.get_shaderModelIs35 () [0x0001e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:268
at UnityEngine.UIElements.UIR.TextureSlotManager..cctor () [0x00010] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRTextureSlotManager.cs:9
Rethrow as TypeInitializationException: The type initializer for 'UnityEngine.UIElements.UIR.TextureSlotManager' threw an exception.
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity, System.Boolean mockDevice) [0x00060] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:92
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity) [0x00000] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:143
at UnityEngine.UIElements.UIR.RenderChain..ctor (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00097] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderChain.cs:186
at UnityEngine.UIElements.UIRRepaintUpdater.CreateRenderChain () [0x00001] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:77
at UnityEngine.UIElements.UIRRepaintUpdater.InitRenderChain () [0x00001] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:137
at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x0000e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:50
at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x0001e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualTreeUpdater.cs:155
at UnityEngine.UIElements.Panel.UpdateForRepaint () [0x00035] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:958
at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00098] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:999
at UnityEngine.UIElements.BaseRuntimePanel.Repaint (UnityEngine.Event e) [0x00061] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:1087
at UnityEngine.UIElements.UIElementsRuntimeUtility.RepaintOverlayPanels () [0x0003a] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UIElementsRuntimeUtility.cs:116
at UnityEngine.UIElements.UIElementsRuntimeUtilityNative.RepaintOverlayPanels () [0x0000a] in <afe54ac2824b489d9042f7875119fca7>:0
(Filename: <1bcd79d45cd74590b726c010430e0a7b> Line: 0)