Method | Description | |
---|---|---|
Play ( |
Plays a sound by creating an empty game object with an AudioSource and attaching it to the given transform (so it moves with the transform). Destroys it after it finished playing.
|
|
Play ( |
Plays a sound at the given point in space by creating an empty game object with an AudioSource in that place and destroys it after it finished playing.
|
public static Play ( |
||
clip | ||
emitter | ||
volume | float | |
pitch | float | |
return |
public static Play ( |
||
clip | ||
point | ||
volume | float | |
pitch | float | |
return |