Class ClipColorAttribute | DOTS Timeline | 0.4.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class ClipColorAttribute

    Apply this attributes to PlayableAssets that represent TimelineClips to change their default color. Only applies to clips that inherit from DOTSClips

    Inheritance
    Object
    Attribute
    ClipColorAttribute
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023