Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

TrackBindingTypeAttribute

class in UnityEngine.Timeline

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 { }

Properties

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

Did you find this page useful? Please give it a rating: