Add project files.
This commit is contained in:
14
Assets/Cryville/Common/ComponentModel/RangeAttribute.cs
Normal file
14
Assets/Cryville/Common/ComponentModel/RangeAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user