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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
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.