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.
18 lines
465 B
C#
18 lines
465 B
C#
using System;
|
|
|
|
namespace NaughtyAttributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
|
public class MinMaxSliderAttribute : DrawerAttribute
|
|
{
|
|
public float MinValue { get; private set; }
|
|
public float MaxValue { get; private set; }
|
|
|
|
public MinMaxSliderAttribute(float minValue, float maxValue)
|
|
{
|
|
MinValue = minValue;
|
|
MaxValue = maxValue;
|
|
}
|
|
}
|
|
}
|