dbrizov / NaughtyAttributes

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

Curve Range for Arrays/List #297

Closed AtaTrkgl closed 2 years ago

AtaTrkgl commented 2 years ago
using NaughtyAttributes;
using UnityEngine;

public class TestScript : MonoBehaviour
{
    [CurveRange(0f, 0f, 1f, 1f, EColor.Blue)]
    public AnimationCurve[] curves;
}

With the script above, previous output was like this: image

Fixed it to look like this: image

dbrizov commented 2 years ago

Merged in v2 2bba47dd3363a992382e780e45f2a89a5c11761c