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
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)
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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
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.