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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment