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

uGUI

-

"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.

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.