Class AudioSequenceData
- Namespace
- CodeBase.SoundSystem.Components
- Assembly
- 4Experience.CodeBase.SoundSystem.Runtime.dll
Scriptable Objects, that stores one ore more audio clips in specified sequence.
[CreateAssetMenu(menuName = "4Experience/CodeBase/Sound System/AudioSequenceData")]
internal class AudioSequenceData : ExtendedScriptableObject
- Inheritance
-
ObjectScriptableObjectAudioSequenceData
- Extension Methods
Properties
ClipsCollection
public List<AudioClip> ClipsCollection { get; private set; }
Property Value
- List<AudioClip>
CurrentBufferIndex
private int CurrentBufferIndex { get; set; }
Property Value
RepeatType
private AudioSequenceData.SequencePlayMode RepeatType { get; set; }
Property Value
Methods
GetContinousRandomClip()
private AudioClip GetContinousRandomClip()
Returns
- AudioClip
GetNextNonRandomClip()
private AudioClip GetNextNonRandomClip()
Returns
- AudioClip
GetNextRandomClip()
private AudioClip GetNextRandomClip()
Returns
- AudioClip
GetSingleRandomClip()
private AudioClip GetSingleRandomClip()
Returns
- AudioClip
Initialize()
public void Initialize()
IsLastClipInNonRandomSequence()
public bool IsLastClipInNonRandomSequence()
Returns
IsNextClipRandom()
private bool IsNextClipRandom()
Returns
ResetCurrentBufferIndex()
private void ResetCurrentBufferIndex()
TryGetNextAudioClip(out AudioClip)
public bool TryGetNextAudioClip(out AudioClip nextClip)
Parameters
nextClipAudioClip