Unity-Technologies / Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
Other
1.38k stars 156 forks source link

Support [Min] attribute on float2, 3, 4 #213

Open Koopa1018 opened 2 years ago

Koopa1018 commented 2 years ago

As it currently stands, giving a float2 field a [Min(0)] attribute makes the inspector show it as an empty dropdown, rather than the expected effect of clamping the lower bound of the components to 0. This seems like a huge missed opportunity in terms of builtin feel.