Table of Contents

Interface IControllable

Used to control something that is playable. Provides seek functionality.

public interface IControllable
Extension Methods

Properties

ElapsedTime

Amount of scaled time that passed within this animation.

float ElapsedTime { get; }

Property Value

float

IsSeekable

Returns true if the current Controllable can be seeked. Use SeekRation in that case.

bool IsSeekable { get; }

Property Value

bool

PlayState

PlayState PlayState { get; }

Property Value

PlayState

SeekRatio

Get or Set the seek ration. Make sure the IsSeekable is true, otherwise this will throw an exception.

float SeekRatio { get; set; }

Property Value

float

TimeScale

float TimeScale { get; set; }

Property Value

float

Methods

Pause()

void Pause()

Resume()

void Resume()

SimulateFrames(int)

Simulates frameCount number of frames to pass. If negative, it'll go backwards in time.

void SimulateFrames(int frameCount)

Parameters

frameCount int

SimulateUpdate(float)

Sends an update with the specified delta time to the Controllable.

void SimulateUpdate(float deltaTime)

Parameters

deltaTime float

Stop()

void Stop()