Search Issue Tracker
Fixed in 1.5.0-preview.5, 2.1.0-preview.5 and 3.0.0-preview.5
Votes
0
Found in [Package]
preview.1 - 3.0.0, preview.3 - 3.0.0
Issue ID
1209771
Regression
Yes
[TMP] NullReferenceException is thrown on selecting Ellipsis property under overflow dropdown when font asset is Bangers SDF
On selecting Ellipsis property under overflow dropdown when font asset is Bangers SDF causes the editor to throw NullReferenceException, refer attached video.
Steps to repro:
1. Create a new Project
2. Hierarchy > Create > Create Empty gameobject
3. Hierarchy > Create > 3D Objects > TMP Text - TextMeshPro
4. Inspector > Font Asset > Bangers SDF > Select
5. Inspector > Overflow > Ellipsis > Select
Actual Result:
NullReferenceException is thrown on selecting Ellipsis property under overflow dropdown.
Expected Result:
Ellipsis property is selected without errors and with any font assigned.
Tested with Unity versions:
2020.1.0a18, 2019.3.0f5
Package found version: preview.3 - 3.0.0, preview.1 - 3.0.0
Package working fine version: 2.0.1
Environment:
Windows10 and macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
TMPro.TextMeshPro.GenerateTextMesh () (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.3/scripts/runtime/tmpro_private.cs:2963)
TMPro.TextMeshPro.OnPreRenderObject () (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.3/scripts/runtime/tmpro_private.cs:1587)
TMPro.TextMeshPro.Rebuild (UnityEngine.UI.CanvasUpdate update) (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.3/scripts/runtime/textmeshpro.cs:261)
TMPro.TMP_UpdateManager.DoRebuilds () (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.3/scripts/runtime/tmp_updatemanager.cs:194)
TMPro.TMP_UpdateManager.OnCameraPreCull (UnityEngine.Camera cam) (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.3/scripts/runtime/tmp_updatemanager.cs:160)
UnityEngine.Camera.FireOnPreCull (UnityEngine.Camera cam) (at <a3d417b16c80486ca3272865b9417295>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment