FIxed the bug that properpty drawer does not work well on the version less than unity 6.1

This commit is contained in:
2025-03-17 23:19:48 +09:00
parent dc1f1fb4e7
commit b12794270f
2 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ namespace Misaki.ShaderGUI
#if UNITY_6000_1_OR_NEWER
return prop.propertyType == ShaderPropertyType.Float || prop.propertyType == ShaderPropertyType.Range || prop.propertyType == ShaderPropertyType.Int;
#else
return prop.type == MaterialProperty.PropType.Float || prop.type == MaterialProperty.PropType.Range || prop.type == MaterialProperty.PropType.Float;
return prop.type == MaterialProperty.PropType.Float || prop.type == MaterialProperty.PropType.Range || prop.type == MaterialProperty.PropType.Int;
#endif
}