Plays an audio token attached to this object
The poliphony depends of number of audio sources attached
| C# | Visual Basic | Visual C++ |
public class AudioPlayer : MonoBehaviour
Public Class AudioPlayer _ Inherits MonoBehaviour
public ref class AudioPlayer : public MonoBehaviour
| All Members | Constructors | Methods | Properties | Fields | |
| Icon | Member | Description |
|---|---|---|
| AudioPlayer()()()() | Initializes a new instance of the AudioPlayer class | |
| active | Obsolete. (Inherited from Component.) | |
| animation | (Inherited from Component.) | |
| audio | (Inherited from Component.) | |
| BroadcastMessage(String, Object, SendMessageOptions) | (Inherited from Component.) | |
| BroadcastMessage(String, Object) | (Inherited from Component.) | |
| BroadcastMessage(String) | (Inherited from Component.) | |
| BroadcastMessage(String, SendMessageOptions) | (Inherited from Component.) | |
| camera | (Inherited from Component.) | |
| CancelInvoke()()()() | (Inherited from MonoBehaviour.) | |
| CancelInvoke(String) | (Inherited from MonoBehaviour.) | |
| collider | (Inherited from Component.) | |
| collider2D | (Inherited from Component.) | |
| CompareTag(String) | (Inherited from Component.) | |
| constantForce | (Inherited from Component.) | |
| enabled | (Inherited from Behaviour.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| gameObject | (Inherited from Component.) | |
| GetComponent(Type) | (Inherited from Component.) | |
| GetComponent``1()()()() | (Inherited from Component.) | |
| GetComponent(String) | (Inherited from Component.) | |
| GetComponentInChildren(Type) | (Inherited from Component.) | |
| GetComponentInChildren``1()()()() | (Inherited from Component.) | |
| GetComponents(Type) | (Inherited from Component.) | |
| GetComponents``1()()()() | (Inherited from Component.) | |
| GetComponentsInChildren(Type) | (Inherited from Component.) | |
| GetComponentsInChildren(Type, Boolean) | (Inherited from Component.) | |
| GetComponentsInChildren``1(Boolean) | (Inherited from Component.) | |
| GetComponentsInChildren``1()()()() | (Inherited from Component.) | |
| GetHashCode()()()() | (Inherited from Object.) | |
| GetInstanceID()()()() | (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| guiElement | Obsolete. (Inherited from Component.) | |
| guiText | (Inherited from Component.) | |
| guiTexture | (Inherited from Component.) | |
| hideFlags | (Inherited from Object.) | |
| hingeJoint | (Inherited from Component.) | |
| Invoke(String, Single) | (Inherited from MonoBehaviour.) | |
| InvokeRepeating(String, Single, Single) | (Inherited from MonoBehaviour.) | |
| IsInvoking(String) | (Inherited from MonoBehaviour.) | |
| IsInvoking()()()() | (Inherited from MonoBehaviour.) | |
| light | (Inherited from Component.) | |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| name | (Inherited from Object.) | |
| networkView | (Inherited from Component.) | |
| particleEmitter | (Inherited from Component.) | |
| particleSystem | (Inherited from Component.) | |
| Pitch |
Pitch
| |
| PitchRandomness |
Randomness
| |
| PlayAtMainCamera |
True to play at current camera
| |
| PlaySound(String, array<AudioOption>[]()[][]) |
Searches the token with the specified ID attached to the same object as this script
Plays it with an audio source attached to the same object as this script
| |
| renderer | (Inherited from Component.) | |
| rigidbody | (Inherited from Component.) | |
| rigidbody2D | (Inherited from Component.) | |
| SendMessage(String, Object, SendMessageOptions) | (Inherited from Component.) | |
| SendMessage(String, Object) | (Inherited from Component.) | |
| SendMessage(String) | (Inherited from Component.) | |
| SendMessage(String, SendMessageOptions) | (Inherited from Component.) | |
| SendMessageUpwards(String, Object, SendMessageOptions) | (Inherited from Component.) | |
| SendMessageUpwards(String, Object) | (Inherited from Component.) | |
| SendMessageUpwards(String) | (Inherited from Component.) | |
| SendMessageUpwards(String, SendMessageOptions) | (Inherited from Component.) | |
| SoundEnabled |
True for sound enabled
| |
| StartCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) | |
| StartCoroutine(String, Object) | (Inherited from MonoBehaviour.) | |
| StartCoroutine(String) | (Inherited from MonoBehaviour.) | |
| StartCoroutine_Auto(IEnumerator) | (Inherited from MonoBehaviour.) | |
| StopAllCoroutines()()()() | (Inherited from MonoBehaviour.) | |
| StopAllSounds()()()() |
Stops all sounds
| |
| StopCoroutine(String) | (Inherited from MonoBehaviour.) | |
| tag | (Inherited from Component.) | |
| ToString()()()() | (Inherited from Object.) | |
| transform | (Inherited from Component.) | |
| useGUILayout | (Inherited from MonoBehaviour.) | |
| Volume |
Volume
|
| Object | ||||||
| Object | ||||||
| Component | ||||||
| Behaviour | ||||||
| MonoBehaviour | ||||||
| AudioPlayer | ||||||
| AudioPlayerMapper | ||||||