Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0b5
2019.2.0a3
Issue ID
1122279
Regression
No
[UI] Resetting material shader throw errors when material shader set to TextmeshPro/Distance field (Surface).
Resetting material shader throw errors when material shader under TextMesh pro is set to TextmeshPro/Distance field (Surface).
Steps to Repro:
1. Create a new project.
2. GameObject -> 3D Object -> Text Mesh Pro - Text.
3. Import Essential Resources and Example & Extras.
4. Select Text Mesh Pro - Text in the hierarchy.
5. Set material shader to TextmeshPro/Distance field (Surface)
6. Reset shader material through cogwheel.
Actual Result:
"Material doesn't have a float or range property '_Stencil'" error thrown.
Expected Result:
Material shader properties reset.
Environment:
Windows & Mac
Reproducible on:
2019.2.0a3, 2019.1.0b1, 2018.1.0b5
Note: TextMeshPro introduced in 2018.1.0b5
Stack Trace:
1. Material doesn't have a float or range property '_Stencil'
UnityEngine.Material:GetFloat(Int32)
TMPro.EditorUtilities.TMP_ContextMenus:ResetSettings(MenuCommand) (at Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Editor/TMPro_ContextMenus.cs:179)
2. Material doesn't have a float or range property '_StencilComp'
UnityEngine.Material:GetFloat(Int32)
TMPro.EditorUtilities.TMP_ContextMenus:ResetSettings(MenuCommand) (at Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Editor/TMPro_ContextMenus.cs:180)
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (fix version 2018.3):
The issue has been resolved. The fix will be included in the TMP UPM package version 1.4.0 for Unity 2018.3.