Class SoundComponentBase
- Namespace
- CodeBase.SoundSystem.Components
- Assembly
- 4Experience.CodeBase.SoundSystem.Runtime.dll
public abstract class SoundComponentBase : ExtendedMonoBehaviour
- Inheritance
-
Object
Component
Behaviour
MonoBehaviour
SoundComponentBase
- Derived
-
- Extension Methods
-
Properties
IDsCollection
protected List<int> IDsCollection { get; private set; }
Property Value
- List<int>
OverrideSourcePosition
protected bool OverrideSourcePosition { get; private set; }
Property Value
- bool
protected Transform OverridedSourcePositionTransform { get; private set; }
Property Value
- Transform
PlayOnStart
protected bool PlayOnStart { get; private set; }
Property Value
- bool
StopPreviousSounds
protected bool StopPreviousSounds { get; private set; }
Property Value
- bool
Type
protected SoundType Type { get; private set; }
Property Value
- SoundType
Methods
ContainsID(int)
public bool ContainsID(int soundID)
Parameters
soundID int
Returns
- bool
ExecuteOverrideSourcePosition()
protected void ExecuteOverrideSourcePosition()
ExecutePlayOnStart()
protected void ExecutePlayOnStart()
ExecuteStopPrevious()
protected void ExecuteStopPrevious()
Mute()
OnDestroy()
protected virtual void OnDestroy()
Pause()
Play()
public abstract void Play()
PlayClip(AudioClip)
protected void PlayClip(AudioClip clip)
Parameters
clip AudioClip
SetVolume(float)
public void SetVolume(float volume)
Parameters
volume float
Stop()
public virtual void Stop()
Unmute()
Unpause()