docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetLocalVolume

    SetLocalVolume(int)

    Sets the volume of a participant for the local user only in the channel associated with this participant. In order to adjust the volume of this player across multiple channels you will need to iterate over ActiveChannels. Similar participants will have a matching PlayerId as the current VivoxParticipant. This only affects the audio that is heard locally, and does not change the audio that is heard by any of the other participants in a channel. Volume value is clamped between -50 and 50 with a default of 0.

    Declaration
    public void SetLocalVolume(int volume)
    Parameters
    Type Name Description
    int volume

    The value to set the participant to for the local user - clamped between -50 and 50 with a default of 0

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)