Method | Description | |
---|---|---|
CreateAudioSource ( GameObject obj, |
Creates and attaches a new audio source component to the given game object. The audio source will play the audio clip provided.
|
public static CreateAudioSource ( GameObject obj, |
||
obj | GameObject | The game object the audio source component is attached to. |
clip | The audio clip for the audio source component. | |
return |