Search Issue Tracker
Feature Request
Votes
0
Found in
2021.3.21f1
2022.2.12f1
2023.1.0b10
2023.2.0a7
Issue ID
UUM-31312
Regression
No
[ShaderGraph] "Float" property value may be set to a floating point value via Material Inspector when Node Mode is "Integer"
How to reproduce:
1. Open the user’s attached “UnityBugShaderGraphFloatAsInteger” project
2. Select the “Assets → MyMaterial” Material in the Project Browser
3. Change “MyInt” field to a floating point value
Expected result: Inspector doesn’t let to change to a non-integer value
Actual result: Any rational number may be set
Reproducible with: 10.10.0 (2020.3.38f1), 12.1.7 (2021.3.8f1), 13.1.8 (2022.1.13f1), 14.0.2 (2022.2.0b4), 15.0.0 (2023.1.0a5)
Reproduced on: macOS 12.3 (Intel)
Note:
- “Default” Node field works as expected
- Related issue forum thread:
[https://forum.unity.com/threads/integer-mode-behaves-as-float-in-inspector.936149/|https://forum.unity.com/threads/integer-mode-behaves-as-float-in-inspector.936149/]
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Resolution Note:
ShaderGraph needs to output an Integer material property type to get the desired behaviour.