docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetNetworkServerSettings

    GetNetworkServerSettings(int)

    Return a set of internal default settings. This will use the NetworkSimulator parameters set by PlayMode Tools.

    Declaration
    public static NetworkSettings GetNetworkServerSettings(int playerCount = 0)
    Parameters
    Type Name Description
    int playerCount

    Amount of players the server should allocate receive and send queue for. The estimation is that each player will receive 4 packets.

    Returns
    Type Description
    NetworkSettings

    Parameters that describe the network configuration.

    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)