Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0b11
Issue ID
1101595
Regression
No
[Improved Prefab] Null reference exception thrown on entering Prefab mode while working with 3d TextMeshPro-Text
"NullReferenceException: Object reference not set to an instance of an object" exception is thrown in the console on entering prefab mode after adding 3D TextMeshPro -Text as a child in Prefab Instance.
Steps to repro:
1. Create a Cube Prefab.
2. In Hierarchy select Cube Prefab instance > Right Click > 3D Object > TextMeshPro - Text.
3. Select Instance > Overrides > Apply All.
4. Enter Prefab Mode.
Actual Result:
Null reference and missing reference exception occur.
Expected Result:
Prefab mode should be opened without any error.
Reproducible in:
2019.1.0a9, 2018.3.0b11, 2018.3.0b1, 2018.3.a6.
NOTE: Improved Prefab has been introduced in 2018.3.0a6.
Environment:
Windows & MAC.
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
- NullReferenceException when setting 'isTextObjectScaleStatic' to false on a disabled TextMeshPro GameObject
- Shader Stripping Custom Options disappear when exiting Play mode without reloading Domain
- Decals do not get projected when 'Rendering Layer Mask' on a GameObject is 23rd Layer or above due to encoding/decoding issues
- Deriving from SearchContextAttribute doesn't always work
- Scripting API documentation is missing for macOS editor extensions
Resolution Note (2018.3.X):
This behavior occurs because the TMP Essential Resources have not been imported into the local project.
These resources must be imported in the local / user project prior on first use / creation of any TextMesh Pro components.
As seen in the video when the TextMesh Pro component is first added, a window / dialogue shows up informing the user the TMP Essential Resources need to be imported. Failure to do so will result in errors.
These errors can easily be avoided by simply importing the TMP Essential Resources.