mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
24 lines
639 B
C#
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;
|
|
}
|
|
}
|
|
} |