Taos API Reference
    Preparing search index...

    Interface AudioSourceDoc

    An AudioSource: plays a clip that tracks the GameObject's world position. clip is the stable guid of an imported audio asset (wav/mp3/ogg/…), resolved + decoded through the AssetResolver at load (like mesh/material refs). bus names a mixer bus; the built-ins are master/sfx/music/ui/voice.

    interface AudioSourceDoc {
        type: "AudioSource";
        clip?: string;
        bus?: string;
        loop?: boolean;
        volume?: number;
        playbackRate?: number;
        spatial?: boolean;
        autoplay?: boolean;
    }
    Index

    Properties

    type: "AudioSource"
    clip?: string

    Stable guid of the audio asset to play.

    bus?: string

    Mixer bus to route through. Default 'sfx'.

    loop?: boolean
    volume?: number
    playbackRate?: number
    spatial?: boolean

    Spatialize at the GameObject's world position. Default true.

    autoplay?: boolean

    Begin playing as soon as the scene plays (component attaches). Default false.