format
typescript
AudioSource.clipclass: AudioSource
description
The default audio clip to play.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
AudioClip | The audio clip. |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.clip;