Files
crtr/Assets/Cryville/Common/ComponentModel/RangeAttribute.cs
2023-03-26 23:25:20 +08:00

15 lines
321 B
C#

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