Files
crtr/Assets/Cryville/Common/ComponentModel/RangeAttribute.cs
2022-09-30 17:32:21 +08:00

15 lines
324 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; }
}
}