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
- [HDRP] [Metal] Tiled artefacts when using DRS
- [HDRP] Empty template starts with incorrect Physically Based Sky ground
- Big chunk of "Untracked" memory in the Memory Profiler screenshot when a custom .obj file is loaded while in Play Mode
- Video contains artifacts when played in the Video Preview section in the Inspector Window
- UI Toolkit Slider "Fill" option doesn't invert when "Inverted" option is selected
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