ReplayBehaviour Methods

Ultimate Replay

ReplayBehaviour Methods

The ReplayBehaviour type exposes the following members.

Methods
  Name Description
Public method Awake
Called by Unity. Allows the ReplayBehaviour to validate its identity and register its self with the replay system.
Public method OnReplayDeserialize
Called by the replay system when all replay state information should be deserialized.
Public method OnReplayEnd
Called by the replay system when playback has ended. You can re-enable game behaviour in this method to allow the gameplay to 'take over'
Public method OnReplayEvent
Called by the replay system when an event has been received during playback.
Public method OnReplayPlayPause
Called by the replay system when playback is about to be paused or resumed.
Public method OnReplaySerialize
Called by the replay system when all replay state information should be serialized.
Public method OnReplayStart
Called by the replay system when playback is about to start. You can disable game behaviour that should not run during playback in this method, such as player movement.
Public method OnReplayUpdate
Called by the replay system every frame while playback is active.
Protected method ReplayDeserializeEvents
Deserializes all active ReplayEvent from the state and dispatches any events to the OnReplayEvent(ReplayEvent) handler.
Protected method ReplayDeserializeVariables
Deserializes all active ReplayVariable from the state.
Protected method ReplayFindVariables
Attempts to find any variables marked with the ReplayVarAttribute so that they can be serialized later.
Protected method ReplayInterpolateVariables
Allows all active ReplayVariable to be interpolated betwen replay frames.
Public method ReplayRecordEvent(Byte, ReplayState)
Push an event to the replay system for recording.
Public method ReplayRecordEvent(ReplayEvents, ReplayState)
Push an event to the replay system for recording.
Protected method ReplaySerializeEvents
Serializes all awaiting ReplayEvent to the state.
Protected method ReplaySerializeVariables
Serializes all active ReplayVariable to the state.
Public method Reset
Called by Unity while in editor mode. Allows the unique id to be generated when the script is attached to an object.
Top
See Also