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 |