ReplayTransform Class

Ultimate Replay

ReplayTransform Class
Attach this component to a game objects in order to record the objects transform for replays. Only one instance of ReplayTransform can be added to any game object.
Inheritance Hierarchy
SystemObject  Object
    Component
      Behaviour
        MonoBehaviour
          UltimateReplayReplayBehaviour
            UltimateReplayReplayTransform

Namespace: UltimateReplay
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ReplayTransform : ReplayBehaviour

The ReplayTransform type exposes the following members.

Constructors
  NameDescription
Public methodReplayTransform
Initializes a new instance of the ReplayTransform class
Top
Methods
  NameDescription
Public methodAwake
Called by Unity.
(Overrides ReplayBehaviourAwake.)
Public methodOnReplayDeserialize
Called by the relay system when the object should return to a previous state.
(Overrides ReplayBehaviourOnReplayDeserialize(ReplayState).)
Public methodOnReplaySerialize
Called by the replay system when the object should be recorded.
(Overrides ReplayBehaviourOnReplaySerialize(ReplayState).)
Public methodOnReplayUpdate
Called during playback and allows the transform to be interpolated to provide a smooth replay even if lower record rates are used.
(Overrides ReplayBehaviourOnReplayUpdate.)
Top
Fields
  NameDescription
Public fieldinterpolate
Should the transform be interpolated between states. This is recommended when low record rates are used as without interpolation the playback can seem jumpy.
Public fieldrecordPosition
Should the position value of the transform be recorded.
Public fieldrecordRotation
Should the rotation value of the transform be recorded.
Public fieldrecordScale
Should the scale value of the transform be recorded.
Top
See Also