-
Notifications
You must be signed in to change notification settings - Fork 0
TPAudioPackage
Tomasz Piowczyk edited this page Sep 8, 2018
·
1 revision
public TPAudioObject[] AudioObjects;/// Gets AudioSource from GameObject named "TPAudioSource"
/// On Get - returns source - if null, create it
/// On Set - behaves like preset
public static AudioSource SFXSource { get {} set {} }
/// Gets AudioSource from GameObject named "TPAudioThemeSource"
/// On Get - returns source - if null, create it
/// On Set - behaves like preset
public static AudioSource ThemeSource { get {} set {} }
/// Removes all Audio Bundles from pool
public static void Dispose(){}
public static void RemoveFromPool(string bundleName){}
public static void RemoveFromPool(TPAudioBundle bundle){}
public static void AddToPool(string bundleName, TPAudioBundle bundle){}
public static void AddToPool(TPAudioBundle bundle){}
public static AudioSource SetClip(TPAudioBundle bundle, string audioName, TPAudioSource source = TPAudioSource.SFX){}
public static AudioSource SetClip(string bundleName, string audioName, TPAudioSource source = TPAudioSource.SFX){}
public static void Play(TPAudioBundle bundle, string audioName, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(string bundleName, string audioName, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(TPAudioBundle bundle, string audioName, Action onAudioEnd, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(string bundleName, string audioName, Action onAudioEnd, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void PlayOneShot(TPAudioBundle bundle, string audioName, float volumeScale = 1.0f){}
public static void PlayOneShot(string bundleName, string audioName, float volumeScale = 1.0f){}
public static void PlayOneShot(TPAudioBundle bundle, string audioName, Action onAudioEnd, float volumeScale = 1.0f){}
public static void PlayOneShot(string bundleName, string audioName, Action onAudioEnd, float volumeScale = 1.0f){}
public static AudioClip GetClip(TPAudioBundle bundle, string audioName){}
public static AudioClip GetClip(string bundleName, string audioName){}
public static TPAudioBundle GetBundle(string bundleName){}
public static bool HasKey(string key){}This is extended documentation of TPFramework.Core, for core functionallity see THIS