Search Issue Tracker
Fixed in 1.4.0 & 2.0.0
Votes
4
Found in [Package]
1.3.0
Issue ID
1115960
Regression
No
Text Mesh Pro components block Prefab isolation mode from opening in Play Mode
If you attempt to edit a prefab in with a Text Mesh Pro UI component attached while in Play Mode, you'll get the following warning:
Prefab Mode in Play Mode was blocked by the script 'TextMeshProUGUI' to prevent the script accidentally affecting Play Mode. See the documentation for [ExecuteInEditMode] and [ExecuteAlways] for info on how to make scripts compatible with Prefab Mode during Play Mode.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
1. Install Unity
2. Open the attached project
3. Make sure the Scene view is set to 3D
4. Enter Play Mode
5. Navigate to Assets > LogContent.prefab in the Project Browser
6. Attempt to edit LogContent.prefab in Isolation mode
Expected Result:
The prefab can be edited while in play mode.
Actual Result:
Isolation mode is blocked from opening because of the Text Mesh component attached to the prefab. A warning is shown in the console.
Tested on Windows.
Tested with Text Mesh Pro version 1.3.0
Occurs on 2019.1.0a14, 2019.2.0a1, 2018.3.0f2
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 1.4.0 & 2.0.0):
Release version 1.4.0 and 2.0.0 of the TMP package for Unity 2018.3 and up now use the [ExecuteAlways] attribute instead of the [ExecuteInEditoMode] attribute