docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithRelayParameters

    WithRelayParameters(ref NetworkSettings, ref RelayServerData, int)

    Sets the RelayNetworkParameter values for the NetworkSettings

    Declaration
    public static ref NetworkSettings WithRelayParameters(this ref NetworkSettings settings, ref RelayServerData serverData, int relayConnectionTimeMS = 3000)
    Parameters
    Type Name Description
    NetworkSettings settings

    NetworkSettings to modify.

    RelayServerData serverData

    ServerData

    int relayConnectionTimeMS

    RelayConnectionTimeMS

    Returns
    Type Description
    NetworkSettings

    Modified NetworkSettings.

    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)