Ultimate Replay Scripting Reference
ReplayAudio Class |
A replay component that is responsible for recording and replaying audio effects that are played during gameplay.
Audio can only be replayed when playback is not being reversed.
Inheritance Hierarchy
SystemObject Object
Component
Behaviour
MonoBehaviour
UltimateReplayReplayBehaviour
UltimateReplayReplayAudio
Component
Behaviour
MonoBehaviour
UltimateReplayReplayBehaviour
UltimateReplayReplayAudio
Namespace: UltimateReplay
Assembly: UltimateReplay (in UltimateReplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ReplayAudio : ReplayBehaviour
The ReplayAudio type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReplayAudio | Initializes a new instance of the ReplayAudio class |
Methods
Name | Description | |
---|---|---|
Awake |
Called by Unity.
(Overrides ReplayBehaviourAwake.) | |
OnReplayEvent |
Called by the replay system when a replay event has occured.
(Overrides ReplayBehaviourOnReplayEvent(ReplayEvent).) | |
Play |
You should call this method as a replacement for AudioSource.Play as it will also record the time of the audio event so that it can be replayed later.
|
Fields
Name | Description | |
---|---|---|
observedAudioSource |
The audio source that will be recorded by this ReplayAudio.
|
See Also