TrackBinder
public sealed class TrackBinder Controls which ITrackTargets from a scene are controlled by which ITrack from a IMovieClip. Can be serialized to save which tracks are bound to which targets.
Constructors
TrackBinder(Scene scene) Controls which ITrackTargets from a scene are controlled by which ITrack from a IMovieClip. Can be serialized to save which tracks are bound to which targets.
Properties
| Name | Type | Description |
|---|---|---|
Scene | Scene | The scene this binder is targeting. |
Default static | TrackBinder | Gets the default binder for the active scene. |
Methods
Void CreateTargets(IMovieClip clip, Boolean replace = True, GameObject rootParent = null) Creates any missing GameObjects or Components for the given to target.
Void CreateTargets(IEnumerable<IReferenceTrack> tracks, Boolean replace = True, GameObject rootParent = null) Void DestroyTargets() Destroy any instances created by GameObject).
Void Add(IReferenceTrack track, IValid target) ITrackTarget Get(ITrack track) Gets or creates a target that maps to the given . The target might not be bound to anything in the scene yet, use IsBound to check.
ITrackReference Get(IReferenceTrack track) ITrackReference<T> Get(IReferenceTrack<T> track) ITrackProperty Get(IPropertyTrack track) ITrackProperty<T> Get(IPropertyTrack<T> track) ITrackReference<T>> GetReferences(IMovieClip clip) Get all reference targets for tracks in the given .
clip — Movie clip to find track bindings for. ITrackProperty<T>> GetProperties(IMovieClip clip) Get all property targets for tracks in the given .
clip — Movie clip to find track bindings for. IEnumerable<T> GetComponents(IMovieClip clip) Get all bound component references for tracks in the given .
clip — Movie clip to find track bindings for. virtual KeyValuePair<Guid, IValid>> GetEnumerator() IEnumerable<Guid> GetTrackIds(IValid gameObjectOrComponent) Finds track IDs currently explicitly bound to the given .
Guid? GetTrackId(IValid gameObjectOrComponent) Boolean TryGetBinding(Guid trackId, IValid target) Returns true if there's an existing mapping for the given , and outputs that mapping as . Note that is a valid binding, to force a track to map to nothing.
Boolean TryGetBinding(Guid trackId, T target) virtual JsonNode Serialize() virtual Void Deserialize(JsonNode node)