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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment