docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Create

    Create(NetworkSettings)

    Create a new NetworkDriver with custom settings.

    Declaration
    public static NetworkDriver Create(NetworkSettings settings)
    Parameters
    Type Name Description
    NetworkSettings settings

    Configuration for the driver.

    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Create()

    Create a new NetworkDriver with default settings.

    Declaration
    public static NetworkDriver Create()
    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Create<N>(N)

    Create a new NetworkDriver with a custom network interface.

    Declaration
    public static NetworkDriver Create<N>(N networkInterface) where N : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    N networkInterface

    Instance of the custom network interface.

    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Type Parameters
    Name Description
    N

    Type of the network interface to use.

    Create<N>(ref N)

    Create a new NetworkDriver with a custom network interface.

    Declaration
    public static NetworkDriver Create<N>(ref N networkInterface) where N : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    N networkInterface

    Instance of the custom network interface.

    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Type Parameters
    Name Description
    N

    Type of the network interface to use.

    Create<N>(N, NetworkSettings)

    Create a new NetworkDriver with a custom network interface and custom settings.

    Declaration
    public static NetworkDriver Create<N>(N networkInterface, NetworkSettings settings) where N : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    N networkInterface

    Instance of the custom network interface.

    NetworkSettings settings

    Configuration for the driver.

    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Type Parameters
    Name Description
    N

    Type of the network interface to use.

    Create<N>(ref N, NetworkSettings)

    Create a new NetworkDriver with a custom network interface and custom settings.

    Declaration
    public static NetworkDriver Create<N>(ref N networkInterface, NetworkSettings settings) where N : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    N networkInterface

    Instance of the custom network interface.

    NetworkSettings settings

    Configuration for the driver.

    Returns
    Type Description
    NetworkDriver

    Newly-constructed driver.

    Type Parameters
    Name Description
    N

    Type of the network interface to use.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023