My UIS editor window is coming up blank. It is getting an error in MainManagerWindow on this line:
The UIS editor does work in a pristine project.
I hunted for the Guid and found it was in this file: G:\UnityProjects\UCCPristine\UCCPristine\Assets\Opsive\Shared\Editor\UIElements\Styles\SharedStyles.uss.meta
This file in my game project has the same guid value. As they are the same, I don't know why the InspectorUtility cannot find it?
I compared the folder structure between the pristine and my game projects. The Opsive/Shared and Opsive/UltimateInventorySystem were identical. I tried deleting these folders and reimporting the UIS package. This did not fix the issue.
Do you know why, the InspectorUtility is not finding the file?
UIS Version: 1.1.4
UCC Version: 2.2.7
Unity Version: 2020.2.1f1 URP
Thx
Code:
rootVisualElement.styleSheets.Add(InspectorUtility.LoadAsset<StyleSheet>("e70f56fae2d84394b861a2013cb384d0"));//shared uss
ArgumentNullException: Value cannot be null.
Parameter name: styleSheet
UnityEngine.UIElements.VisualElementStyleSheetSet.Add (UnityEngine.UIElements.StyleSheet styleSheet) (at Library/PackageCache/com.unity.ui@1.0.0-preview.13/Core/VisualElementStyleSheetSet.cs:30)
Opsive.UltimateInventorySystem.Editor.Managers.MainManagerWindow.OnEnable () (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/MainManagerWindow.cs:239)
UnityEditor.EditorWindow:GetWindow(Boolean, String)
Opsive.UltimateInventorySystem.Editor.Managers.MainManagerWindow:ShowWindow() (at Assets/Opsive/UltimateInventorySystem/Editor/Managers/MainManagerWindow.cs:125)
The UIS editor does work in a pristine project.
I hunted for the Guid and found it was in this file: G:\UnityProjects\UCCPristine\UCCPristine\Assets\Opsive\Shared\Editor\UIElements\Styles\SharedStyles.uss.meta
This file in my game project has the same guid value. As they are the same, I don't know why the InspectorUtility cannot find it?
I compared the folder structure between the pristine and my game projects. The Opsive/Shared and Opsive/UltimateInventorySystem were identical. I tried deleting these folders and reimporting the UIS package. This did not fix the issue.
Do you know why, the InspectorUtility is not finding the file?
UIS Version: 1.1.4
UCC Version: 2.2.7
Unity Version: 2020.2.1f1 URP
Thx
Last edited: