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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
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.