docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(int, out NetworkManager, out NetworkManager[], int, bool, bool)

    Creates NetworkingManagers and configures them for use in a multi instance setting.

    Declaration
    public static bool Create(int clientCount, out NetworkManager server, out NetworkManager[] clients, int targetFrameRate = 60, bool serverFirst = true, bool useMockTransport = false)
    Parameters
    Type Name Description
    int clientCount

    The amount of clients

    NetworkManager server

    The server NetworkManager

    NetworkManager[] clients

    The clients NetworkManagers

    int targetFrameRate

    The targetFrameRate of the Unity engine to use while the multi instance helper is running. Will be reset on shutdown.

    bool serverFirst

    This determines if the server or clients will be instantiated first (defaults to server first)

    bool useMockTransport
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2024 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)