Class TrackColorAttribute
Attribute used to specify the color of the track and its clips inside the Timeline Editor.
Namespace: UnityEngine.Timeline
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class TrackColorAttribute : Attribute, _Attribute
Constructors
TrackColorAttribute(Single, Single, Single)
Specify the track color using [0-1] R,G,B values.
Declaration
public TrackColorAttribute(float r, float g, float b)
Parameters
Type | Name | Description |
---|---|---|
Single | r | Red value [0-1]. |
Single | g | Green value [0-1]. |
Single | b | Blue value [0-1]. |
Properties
color
Declaration
public Color color { get; }
Property Value
Type | Description |
---|---|
Color |