Struct AudioSourceStop | Project Tiny | 0.32.0-preview.54
docs.unity.cn
    Show / Hide Table of Contents

    Struct AudioSourceStop

    Attach this component to an entity with an AudioSource component to stop playback the next time the AudioSystem updates.

    Namespace: Unity.Tiny.Audio
    Syntax
    public struct AudioSourceStop : IComponentData
    Remarks

    Once playback stops, the AudioSystem removes this component. Attaching an AudioSourceStop component to an already stopped source has no effect. To start playing a source, use the AudioSourceStart component.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021