Class TrackBindingTypeAttribute | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackBindingTypeAttribute

    Specifies the type of object that should be bound to a TrackAsset.

    Inheritance
    System.Object
    System.Attribute
    TrackBindingTypeAttribute
    Namespace: UnityEngine.Timeline
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public class TrackBindingTypeAttribute : Attribute, _Attribute
    Remarks

    Use this attribute when creating Custom Tracks to specify the type of object the track requires a binding to.

    Examples
    using UnityEngine;
    using UnityEngine.Timeline;
    [TrackBindingType(typeof(Light), TrackBindingFlags.AllowCreateComponent)]
    public class LightTrack : TrackAsset
    {
    }

    Constructors

    TrackBindingTypeAttribute(Type)

    Declaration
    public TrackBindingTypeAttribute(Type type)
    Parameters
    Type Name Description
    System.Type type

    TrackBindingTypeAttribute(Type, TrackBindingFlags)

    Declaration
    public TrackBindingTypeAttribute(Type type, TrackBindingFlags flags)
    Parameters
    Type Name Description
    System.Type type
    TrackBindingFlags flags

    Fields

    flags

    Options for the the track binding

    Declaration
    public readonly TrackBindingFlags flags
    Field Value
    Type Description
    TrackBindingFlags

    type

    The type of binding for the associate track

    Declaration
    public readonly Type type
    Field Value
    Type Description
    System.Type
    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