Ultimate Replay Scripting Reference
ReplayBehaviour Methods |
The ReplayBehaviour type exposes the following members.
Methods
Name | Description | |
---|---|---|
Awake |
Called by Unity.
Allows the ReplayBehaviour to validate its identity and register its self with the replay system.
|
|
OnReplayDeserialize |
Called by the replay system when all replay state information should be deserialized.
|
|
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'
|
|
OnReplayEvent |
Called by the replay system when an event has been received during playback.
|
|
OnReplayPlayPause |
Called by the replay system when playback is about to be paused or resumed.
|
|
OnReplaySerialize |
Called by the replay system when all replay state information should be serialized.
|
|
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.
|
|
OnReplayUpdate |
Called by the replay system every frame while playback is active.
|
|
ReplayDeserializeEvents |
Deserializes all active ReplayEvent from the state and dispatches any events to the OnReplayEvent(ReplayEvent) handler.
|
|
ReplayDeserializeVariables |
Deserializes all active ReplayVariable from the state.
|
|
ReplayFindVariables |
Attempts to find any variables marked with the ReplayVarAttribute so that they can be serialized later.
|
|
ReplayInterpolateVariables |
Allows all active ReplayVariable to be interpolated betwen replay frames.
|
|
ReplayRecordEvent(Byte, ReplayState) |
Push an event to the replay system for recording.
|
|
ReplayRecordEvent(ReplayEvents, ReplayState) |
Push an event to the replay system for recording.
|
|
ReplaySerializeEvents |
Serializes all awaiting ReplayEvent to the state.
|
|
ReplaySerializeVariables |
Serializes all active ReplayVariable to the state.
|
|
Reset |
Called by Unity while in editor mode.
Allows the unique id to be generated when the script is attached to an object.
|
See Also