Version: 2018.2

TrackBindingTypeAttribute

class in UnityEngine.Timeline

Switch to Manual

Description

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

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

using UnityEngine;
using UnityEngine.Timeline;

[TrackBindingType(typeof(Light), TrackBindingFlags.AllowCreateComponent)] public class LightTrack : TrackAsset { }

Variables

flagsOptions related to the track binding.
typeThe type of object that the track requires a binding to.