Search Issue Tracker

Fixed in 1.5.0-preview.12, 2.1.0-preview.12, 3.0.0-preview.12

Votes

0

Found in [Package]

2018.2.0f2

2018.3

2018.4

2019.1

2019.2

2019.3

2020.1

2020.2

2020.2.0a10

Issue ID

1242671

Regression

No

Material doesn't have a float or range property errors are thrown on pasting Atlas values in the material

Package: TextMeshPro

-

Errors are thrown on pasting Atlas values in the material:
-Material doesn't have a float or range property '_GradientScale'
-Material doesn't have a float or range property '_TextureWidth'
-Material doesn't have a float or range property '_TextureHeight'

Steps to repro:
1. Create a new Project.
2. Windows > 3D object > Cube.
3. Select Cube > Inspector > Material
4. Click on Burger button > Copy Atlas.
5. Click on Burger button > Paste Atlas.

Actual Result:
Material doesn't have a float or range property errors are thrown in the console.

Expected Result:
No error in the console.

Reproducible in:
2020.2.0a10, 2020.1.0b8, 2019.3.9f1, 2019.2.0f1, 2019.1.0f1, 2018.4.16f1, 2018.2.0f2.

Environment:
Occurring on Windows 10 & Mac 10.15

Stack trace:
Material doesn't have a float or range property '_GradientScale'
UnityEngine.Material:GetFloat (int)
TMPro.EditorUtilities.TMP_ContextMenus:PasteAtlas (UnityEditor.MenuCommand) (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.1/scripts/editor/tmpro_contextmenus.cs:268)

Material doesn't have a float or range property '_TextureWidth'
UnityEngine.Material:GetFloat (int)
TMPro.EditorUtilities.TMP_ContextMenus:PasteAtlas (UnityEditor.MenuCommand) (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.1/scripts/editor/tmpro_contextmenus.cs:269)

Material doesn't have a float or range property '_TextureHeight'
UnityEngine.Material:GetFloat (int)
TMPro.EditorUtilities.TMP_ContextMenus:PasteAtlas (UnityEditor.MenuCommand) (at library/packagecache/com.unity.textmeshpro@3.0.0-preview.1/scripts/editor/tmpro_contextmenus.cs:270)

  1. Resolution Note (fix version 1.5.0-preview.12, 2.1.0-preview.12, 3.0.0-preview.12):

    This issue has been resolved.

    It will now be possible to use these Material Context Menu options that were initially created for TMP with other non TMP specific materials. Copy / Paste Material Properties as well as Copy / Paste Atlas should work on all materials now.

    This fix will be included in the next release of the TMP package which is expected to be Preview 12.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.