NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

CurveRange does not clamp values inside range

Open iuridosanjos opened this issue 3 years ago • 1 comments

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 avatar May 18 '22 02:05 iuridosanjos

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

iuridosanjos avatar May 18 '22 02:05 iuridosanjos