You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
405 B
17 lines
405 B
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; |
|
} |
|
} |
|
}
|
|
|