Files
crtr/Assets/Cryville/Common/ComponentModel/RangeAttribute.cs

15 lines
325 B
C#

using System;
namespace Cryville.Common.ComponentModel {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class RangeAttribute : Attribute {
public RangeAttribute(double min, double max) {
Min = min;
Max = max;
}
public double Min { get; set; }
public double Max { get; set; }
}
}