Version: 2018.4
LanguageEnglish
  • C#

TrackBindingTypeAttribute

class in UnityEngine.Timeline

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.