Search Issue Tracker
Fixed
Fixed in 2023.2.15f1, 6000.0.0b11
Votes
0
Found in
2023.2.11f1
2023.3.0b8
6000.0.0b11
Issue ID
UUM-64870
Regression
Yes
Inspector freezes and "NullReferenceException" errors are thrown when "Edit Glyph" button is clicked
Reproduction steps:
1. Open the attached “TextGlyph.zip” project
2. Select the “Text (TMP)” GameObject in the “Canvas” in the Hierarchy
3. Expand “Extra Settings” in the TMP Component in the Inspector
4. Double-click on the attached Sprite Asset
5. Expand the “Sprite Character Table” in the Inspector
6. Click on any of the Sprites
7. Click “Edit Glyph”
Expected result: Glyph editing panel appears and no errors are thrown
Actual result: “NullReferenceException” errors are thrown and the Inspector freezes
Reproducible with: 2023.2.0a14, 2023.2.11f1, 2023.3.0b8
Not reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.0a13
Reproducible on: Windows 10 (User reported), Windows 11
Not reproducible on: no other environment tested
Notes:
- Make sure to import TMP Essentials
- When the Inspector freezes after “Edit Glyph” is clicked, clicking on any other GameObject unfreezes the Inspector
- Longer error text: “NullReferenceException: Object reference not set to an instance of an object
TMPro.EditorUtilities.TMP_SpriteCharacterPropertyDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at ./Library/PackageCache/com.unity.ugui/Editor/TMP/PropertyDrawers/TMP_SpriteCharacterPropertyDrawer.cs:132)”
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 6000.0.0b11):
Fixed sprite asset inspector for TMP
Resolution Note (fix version 2023.2.15f1):
Fixed sprite asset inspector for TMP