Tri-Inspector/Runtime/Attributes/GUIColorAttribute.cs
2023-03-12 11:38:39 +04:00

24 lines
632 B
C#

using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public 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;
}
}
}