Timeline Mixer Documentation
Loading...
Searching...
No Matches
TimelineMixer.TrackProcessorManager Class Reference

Automatically discovers all classes that inherit from TrackProcessor and have the TrackProcessor attribute and creates an instance of them. More...

Public Member Functions

void RegisterProcessorInstance (Type trackType, ITrackProcessor processor)
 Stores the track processor in a dictionary, which can be retrieved with the track type.
ITrackProcessor TryGetProcessor (Type trackType)
 Returns a track processor of the given type, or the default processor if there is no entry for that type.
void ResetAllTrackProcessors ()
 Calls Reset on each track processor, use Reset to clear all stored data and empty collections.

Private Member Functions

void RegisterAllProcessors ()
 Uses reflection to discover all track processors.

Detailed Description

Automatically discovers all classes that inherit from TrackProcessor and have the TrackProcessor attribute and creates an instance of them.

Member Function Documentation

◆ RegisterProcessorInstance()

void TimelineMixer.TrackProcessorManager.RegisterProcessorInstance ( Type trackType,
ITrackProcessor processor )
inline

Stores the track processor in a dictionary, which can be retrieved with the track type.

Parameters
trackTypeThe track type the processor supports.
processorThe Track Processor.

◆ TryGetProcessor()

ITrackProcessor TimelineMixer.TrackProcessorManager.TryGetProcessor ( Type trackType)
inline

Returns a track processor of the given type, or the default processor if there is no entry for that type.

Parameters
trackTypeThe type of the track processor we're trying to find. If the type was "AnimationTrack", and there is a processor that supports that track, it will return the corresponding processor
Returns
Classes that inherit TrackProcessor, which impliments the ITrackProcessor interface