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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
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