dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.53k stars 464 forks source link

CurveRange does not clamp values inside range #320

Open iuridosanjos opened 2 years ago

iuridosanjos commented 2 years ago

When using this:

[CurveRange(0, 0, 1, 1)]
public AnimationCurve Curve;

image It allows you to set values outside the range [0-1] which shouldn't be allowed. I was using another implementation similar to this one and it was working perfectly. Thought it would have the same results, but sadly not.

iuridosanjos commented 2 years ago

I've tested and it seems to not work correctly with [AllowNesting]. When I removed it, it worked as expected.