C# Class Utils.Audio.AudioHelper

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: LelandLL/slicer Class Usage Examples

Public Methods

Method Description
CreateAudioSource ( Transform obj, AudioClip clip ) : AudioSource
CreateAudioSource ( Transform obj, AudioClip clip, float volume ) : AudioSource
CreateAudioSource ( Transform obj, AudioClip clip, float volume, float pitch ) : AudioSource
Get ( ) : AudioHelper
GetVolume ( float baseVolume, SoundType type ) : float
PlayClipAtPoint ( AudioClip clip, Vector3 pos ) : AudioSource
PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume ) : AudioSource
PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume, SoundType type ) : AudioSource
PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume, SoundType type, Transform parent ) : AudioSource

Method Details

CreateAudioSource() public static method

public static CreateAudioSource ( Transform obj, AudioClip clip ) : AudioSource
obj UnityEngine.Transform
clip UnityEngine.AudioClip
return UnityEngine.AudioSource

CreateAudioSource() public static method

public static CreateAudioSource ( Transform obj, AudioClip clip, float volume ) : AudioSource
obj UnityEngine.Transform
clip UnityEngine.AudioClip
volume float
return UnityEngine.AudioSource

CreateAudioSource() public static method

public static CreateAudioSource ( Transform obj, AudioClip clip, float volume, float pitch ) : AudioSource
obj UnityEngine.Transform
clip UnityEngine.AudioClip
volume float
pitch float
return UnityEngine.AudioSource

Get() public static method

public static Get ( ) : AudioHelper
return AudioHelper

GetVolume() public static method

public static GetVolume ( float baseVolume, SoundType type ) : float
baseVolume float
type SoundType
return float

PlayClipAtPoint() public static method

public static PlayClipAtPoint ( AudioClip clip, Vector3 pos ) : AudioSource
clip UnityEngine.AudioClip
pos UnityEngine.Vector3
return UnityEngine.AudioSource

PlayClipAtPoint() public static method

public static PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume ) : AudioSource
clip AudioClip
pos Vector3
volume float
return AudioSource

PlayClipAtPoint() public static method

public static PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume, SoundType type ) : AudioSource
clip AudioClip
pos Vector3
volume float
type SoundType
return AudioSource

PlayClipAtPoint() public static method

public static PlayClipAtPoint ( AudioClip clip, Vector3 pos, float volume, SoundType type, Transform parent ) : AudioSource
clip AudioClip
pos Vector3
volume float
type SoundType
parent Transform
return AudioSource