Class TrackBindingTypeAttribute
Specifies the type of object that should be bound to a TrackAsset.
Inherited Members
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
[TrackBindingType(typeof(Light), TrackBindingFlags.AllowCreateComponent)]
public class LightTrack : TrackAsset { }
Constructors
TrackBindingTypeAttribute(Type)
Creates a new TrackBindingTypeAttribute.
Declaration
public TrackBindingTypeAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
TrackBindingTypeAttribute(Type, TrackBindingFlags)
Creates a new TrackBindingTypeAttribute.
Declaration
public TrackBindingTypeAttribute(Type type, TrackBindingFlags flags)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|
Type |