ReplayAudio Class

Ultimate Replay

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

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
  NameDescription
Public methodReplayAudio
Initializes a new instance of the ReplayAudio class
Top
Methods
  NameDescription
Public methodAwake
Called by Unity.
(Overrides ReplayBehaviourAwake.)
Public methodOnReplayEvent
Called by the replay system when a replay event has occured.
(Overrides ReplayBehaviourOnReplayEvent(ReplayEvent).)
Public methodPlay
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.
Top
Fields
  NameDescription
Public fieldobservedAudioSource
The audio source that will be recorded by this ReplayAudio.
Top
See Also