Search Issue Tracker
Fixed
Fixed in 2023.1.0a20
Votes
0
Found in
2023.1.0a10
Issue ID
UUM-13929
Regression
Yes
NullReferenceException in TMPro.MaterialReference when creating a UI Button - TextMeshPro
Repro steps:
- start a new project
- create a new UI Button - TextMeshPro in an empty scene
- the TextMeshPro pop-up will appear, and you'll need to install the TMP essentials
- try to select the Text(TMP) child element of the Button in the scene view and move it arround
Expected result:
- the text on the button says "Button"
- no errors appear when moving the text object
Actual result:
- the text is blank
- lots of console errors appear when you try to move the button
Reproducible with: 2023.1.0a10 (TMP 3.0.6)
Not reproducible with: 2019.4.40f1, 2020.3.38f1, 2021.3.10f1, 2022.1.16f1, 2022.2.0b8, 2023.1.0a9 (TMP 3.0.6)
NOTE: this error appears to happen for UI Button text element only. So one workaround could be to create a simple UI TextMeshPro Text game object and add it to a UI button instead.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][iOS][UnityPlayerActivity] Legacy InputField.onEndEdit is not called when ending text edit
- Transform corruption and/or crash on PhysX::CreateCharacterController when spawning physics objects into Prefab stages
- UNITY_EDITOR data is Serialized into AssetBundle when building on the active Build Target
- "TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations..." error when changing the Packages "Cache Location" folder
- CompilationPipeline.assemblyCompilationFinished() hangs unity when reloading domain
Resolution Note (fix version 2023.1.0a20):
Fixed errors appearing when importing TextMeshPro essentials package.