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.
![](SectionExpanded.png)
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)
![](SectionExpanded.png)
C#
public class ReplayAudio : ReplayBehaviour
The ReplayAudio type exposes the following members.
![](SectionExpanded.png)
Name | Description | |
---|---|---|
![]() | ReplayAudio | Initializes a new instance of the ReplayAudio class |
![](SectionExpanded.png)
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.
|
![](SectionExpanded.png)
Name | Description | |
---|---|---|
![]() | observedAudioSource |
The audio source that will be recorded by this ReplayAudio.
|
![](SectionExpanded.png)