docs.unity.cn
    Show / Hide Table of Contents

    Class TrackColorAttribute

    Attribute used to specify the color of the track and its clips inside the Timeline Editor.

    Inheritance
    Object
    TrackColorAttribute
    Namespace: UnityEngine.Timeline
    Syntax
    public class TrackColorAttribute : 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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Tuesday, May 4, 2021