diff options
Diffstat (limited to 'ROUNDS/emotitron.Utilities.GUIUtilities/ValueTypeAttribute.cs')
-rw-r--r-- | ROUNDS/emotitron.Utilities.GUIUtilities/ValueTypeAttribute.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ROUNDS/emotitron.Utilities.GUIUtilities/ValueTypeAttribute.cs b/ROUNDS/emotitron.Utilities.GUIUtilities/ValueTypeAttribute.cs new file mode 100644 index 0000000..045853b --- /dev/null +++ b/ROUNDS/emotitron.Utilities.GUIUtilities/ValueTypeAttribute.cs @@ -0,0 +1,18 @@ +using System; +using UnityEngine; + +namespace emotitron.Utilities.GUIUtilities; + +[AttributeUsage(AttributeTargets.Field)] +public class ValueTypeAttribute : PropertyAttribute +{ + public string labeltag; + + public float width; + + public ValueTypeAttribute(string labeltag, float width = 48f) + { + this.labeltag = labeltag; + this.width = width; + } +} |