Show / Hide Table of Contents

Class ActorPlaybackControl

Takes care of animating the actor through their recording.

Inheritance
System.Object
ActorPlaybackControl
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RecordAndPlay.Playback
Assembly: RecordAndPlay.dll
Syntax
public class ActorPlaybackControl

Constructors

ActorPlaybackControl(GameObject, IPlaybackCustomEventHandler, Recording, SubjectRecording)

Build a new ActorPlaybackControl.

Declaration
public ActorPlaybackControl(GameObject representation, IPlaybackCustomEventHandler customEventHandler, Recording recording, SubjectRecording subjectRecording)
Parameters
Type Name Description
UnityEngine.GameObject representation

The actor meant to represent the subject during playback.

IPlaybackCustomEventHandler customEventHandler

Handles custom events that occurs to the subject in the recording.

Recording recording

The recording containing this subject's recording and potentially others.

SubjectRecording subjectRecording

The recording we will be acting out with the representaion provided.

Methods

DestroyRepresentation(ActorCleanupMethod)

Removes the representation of the actor from the scene.

Declaration
public void DestroyRepresentation(ActorCleanupMethod cleanupMethod)
Parameters
Type Name Description
ActorCleanupMethod cleanupMethod

MoveTo(Single)

Interpolates the current actor's orientation with the new one deduced from the time provided. Any custom events that occur from the original time and the new time passed in are executed through the provided custom event handler.

Declaration
public void MoveTo(float newTime)
Parameters
Type Name Description
System.Single newTime

The time the orientation should represent through the playback.

SetTime(Single)

Set's the current time the playback is in without any of the interpolation.

Declaration
public void SetTime(float time)
Parameters
Type Name Description
System.Single time

The time to move the playback to.

SkipTo(Single)

Interpolates the current actor's orientation with the new one deduced from the time provided. Any custom events that occur between the original time and the new time passed in are ignored.

Declaration
public void SkipTo(float newTime)
Parameters
Type Name Description
System.Single newTime

The time the orientation should represent through the playback.

Back to top Generated by DocFX