BUG: UI designer

Shoodaddy

New member
Using Unity 2023.2.2f1, Inventory System 1.2.18 (for some reason .19 is not available for download via Package Manager)

Able to Duplicate and setup UI without issue however. Can also create a UI e.g. an Inventory Grid. However, when trying to make any additional edits of UI get 29 instances of this error:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.TextElement.get_showPlaceholderText () (at <88a51cb7a4604f61859dafad483fe0d4>:0)
UnityEngine.UIElements.TextElement.get_renderedText () (at <88a51cb7a4604f61859dafad483fe0d4>:0)
UnityEngine.UIElements.UITKTextHandle.ConvertUssToTextGenerationSettings () (at <88a51cb7a4604f61859dafad483fe0d4>:0)
UnityEngine.UIElements.UITKTextJobSystem+PrepareTextJobData.Execute (System.Int32 index) (at <88a51cb7a4604f61859dafad483fe0d4>:0)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <454b8adca03e44db8a0e3ace7093e9b8>:0)


Also the UI Designer goes completely blank.

1701541467072.png

If I delete the object (e.g. the said inventory Grid) then the UI Designer gets back to stable state and I can recreate the UI... however same problem will re occur.

This happens with the Demo Database as well with a custom one.

Thanks for looking at this.. - S
 
What a weird error, I don't see anything related to UIS in your error message. It's all unity. It might be a bug with that version of Unity.
I don't think your Unity version is considered LTS?

I will need to give it a try myself to be sure.
I would recommend you file a bug with Unity for this one and hopefully they'll fix it by the time this version is considered LTS
 
Still no solution or workaround to this problem other than going back to the LTS version? This would not be desirable in my case
 
I'm afraid there is not much I can do when the error comes from the Unity source code. All we can hope is that they fix it with an upcoming update. Make sure to write a bug report to Unity. Maybe they'll fix it before they release the 2023 LTS version

Once they release 2023 LTS I will do some thorough testing of all the features for that version and fix anything that goes wrong. So it's up to you if you are ready to wait a bit. Unity usually releases the LTS version in March/April if I'm remembering correctly
 
I also get these errors. Maybe this is not a bug, but a change in the API in the new version of Unity?
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.TextElement.get_showPlaceholderText () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.TextElement.get_renderedText () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.UITKTextHandle.ConvertUssToTextGenerationSettings () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.UITKTextJobSystem+PrepareTextJobData.Execute (System.Int32 index) (at <6a558074f3e5493a87ae967e8113a3fe>:0)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <579f6a25593149bdb5b2b685692d23ea>:0)
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.TextElement.get_showPlaceholderText () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.TextElement.get_renderedText () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.UITKTextHandle.ConvertUssToTextGenerationSettings () (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.UITKTextJobSystem.GenerateTextJobified (UnityEngine.UIElements.MeshGenerationContext mgc, System.Object data) (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.UIElements.UIR.MeshGenerationDeferrer.Invoke (UnityEngine.UIElements.UIR.MeshGenerationDeferrer+CallbackInfo ci, UnityEngine.UIElements.MeshGenerationContext mgc) (at <6a558074f3e5493a87ae967e8113a3fe>:0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
 
Unfortunatly the strack trace does not point to any of the UIS code. It's all within Unity
You can make a Unity bug report here: https://unity.com/releases/editor/qa/bug-reporting

If this persists when the 2023 LTS version comes out, I will re-write the UI Designer to work around this Unity bug. But I'm sure you understand this is a huge amount of work, doing it before the LTS version is released could mean even more work as other things could break in the meantime.
And if we're lucky unity might fix this in time.

If more than 5 people are blocked by this I will reconsider and I'll fix it asap.
 
Top