Skip to content

Instantly share code, notes, and snippets.

@beardordie
Created August 18, 2018 19:20
Show Gist options
  • Save beardordie/74bc013d97d7fe975d3cb04ac7bb62c6 to your computer and use it in GitHub Desktop.
Save beardordie/74bc013d97d7fe975d3cb04ac7bb62c6 to your computer and use it in GitHub Desktop.
Custom attribute to enforce Min and Max float values - used by RangedFloatDrawer
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