Tri-Inspector/Runtime/Attributes/GUIColorAttribute.cs
2022-01-05 14:59:05 +03:00

24 lines
639 B
C#

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;
}
}
}