Class ClipColorAttribute
Apply this attributes to PlayableAssets that represent TimelineClips to change their default color. Only applies to clips that inherit from DOTSClips
Namespace: Unity.Timeline.Hybrid
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class ClipColorAttribute : Attribute, _Attribute
Constructors
ClipColorAttribute(Byte, Byte, Byte, Byte)
Specify color in RGBA format (0-255)
Declaration
public ClipColorAttribute(byte red, byte green, byte blue, byte alpha = 255)
Parameters
Type | Name | Description |
---|---|---|
Byte | red | |
Byte | green | |
Byte | blue | |
Byte | alpha |
ClipColorAttribute(Single, Single, Single)
Specify color in HSV format
Declaration
public ClipColorAttribute(float hue, float saturation, float value)
Parameters
Type | Name | Description |
---|---|---|
Single | hue | |
Single | saturation | |
Single | value |
Properties
Color
The color to on the clip
Declaration
public Color Color { get; }
Property Value
Type | Description |
---|---|
Color |