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
- UI becomes unresponsive when using AppUI Navigation and Event System is attached
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
Add comment