using System;
using UnityEngine;
namespace UnityEngine.Timeline
{
///
/// Attribute used to specify the color of the track and its clips inside the Timeline Editor.
///
[AttributeUsage(AttributeTargets.Class)]
public class TrackColorAttribute : Attribute
{
Color m_Color;
///
///
///
public Color color
{
get { return m_Color; }
}
///
/// Specify the track color using [0-1] R,G,B values.
///
/// Red value [0-1].
/// Green value [0-1].
/// Blue value [0-1].
public TrackColorAttribute(float r, float g, float b)
{
m_Color = new Color(r, g, b);
}
}
}