NaughtyAttributes
NaughtyAttributes copied to clipboard
CurveRange does not clamp values inside range
When using this:
[CurveRange(0, 0, 1, 1)]
public AnimationCurve Curve;
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.
I've tested and it seems to not work correctly with [AllowNesting]. When I removed it, it worked as expected.