Tri-Inspector/Runtime/Attributes/GUIColorAttribute.cs

24 lines
639 B
C#
Raw Normal View History

2021-12-07 10:20:36 -05:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class GUIColorAttribute : Attribute
{
public float R { get; }
public float G { get; }
public float B { get; }
public float A { get; }
public GUIColorAttribute(float r, float g, float b, float a = 1f)
{
R = r;
G = g;
B = b;
A = a;
}
}
}