TrackBindingTypeAttribute

class in UnityEngine.Timeline

Cambiar al Manual

Descripción

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.