Class TrackColorAttribute
Attribute used to specify the color of the track and its clips inside the Timeline Editor.
Inheritance
System.Object
System.Attribute
TrackColorAttribute
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 |
---|---|---|
System.Single | r | Red value [0-1]. |
System.Single | g | Green value [0-1]. |
System.Single | b | Blue value [0-1]. |
Properties
color
Declaration
public Color color { get; }
Property Value
Type | Description |
---|---|
Color |