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