Created
August 18, 2018 19:20
-
-
Save beardordie/74bc013d97d7fe975d3cb04ac7bb62c6 to your computer and use it in GitHub Desktop.
Custom attribute to enforce Min and Max float values - used by RangedFloatDrawer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class MinMaxRangeAttribute : Attribute | |
{ | |
public MinMaxRangeAttribute(float min, float max) | |
{ | |
Min = min; | |
Max = max; | |
} | |
public float Min { get; private set; } | |
public float Max { get; private set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment