docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetChannelVolumeAsync

    SetChannelVolumeAsync(string, int)

    Sets the volume of an entire channel for the local user. This will adjust the volume of player audio for all players in a channel for the local user. Volume value is clamped between -50 and 50 with a default of 0.

    Declaration
    Task SetChannelVolumeAsync(string channelName, int value)
    Parameters
    Type Name Description
    string channelName

    The name of the channel to set the volume value for

    int value

    Volume value to be used - clamped between -50 and 50 with a default value of 0

    Returns
    Type Description
    Task

    Task for the operation

    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)