You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Plugins/NaughtyAttributes/Scripts/Test/CurveRangeTest.cs

33 lines
615 B
C#

1 month ago
using UnityEngine;
using NaughtyAttributes;
public class CurveRangeTest : MonoBehaviour
{
[CurveRange(-1, -1, 1, 1, EColor.Red)]
public AnimationCurve curve;
[CurveRange(EColor.Orange)]
public AnimationCurve curve1;
[CurveRange(0, 0, 10, 10)]
public AnimationCurve curve2;
public CurveRangeNest1 nest1;
[System.Serializable]
public class CurveRangeNest1
{
[CurveRange(0, 0, 1, 1, EColor.Green)]
public AnimationCurve curve;
public CurveRangeNest2 nest2;
}
[System.Serializable]
public class CurveRangeNest2
{
[CurveRange(0, 0, 5, 5, EColor.Blue)]
public AnimationCurve curve;
}
}