AudioSource.playOnAwakevar playOnAwake : booleanDescriptionIf set to true, the audio source will automatically start playing on awake
JavaScript
if(!audio.playOnAwake) { using UnityEngine; import UnityEngine |
|
||||
| Scripting > Runtime Classes > AudioSource | Switch to Component | |||
AudioSource.playOnAwakevar playOnAwake : booleanDescriptionIf set to true, the audio source will automatically start playing on awake
JavaScript
if(!audio.playOnAwake) { using UnityEngine; import UnityEngine |