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
- Crash on [NSApplication endModalSession:] when saving while Play Mode is loading
- Incorrect Preferred Height calculation when a single text line uses different Font Assets
- [ShaderGraph] Redo Collapse Nodes action does not fully collapse the Nodes
- [Ubuntu] Mouse cursor is set box select mode after exiting VFX Graph's Rename Context function
- Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
Add comment