docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method CreateClientNetworkDriver

    CreateClientNetworkDriver<T>(T)

    Helper method for creating NetworkDriver suitable for client. The driver will use the the specified netIf and is configured using the internal defaults. See: GetNetworkSettings().

    Declaration
    public static NetworkDriverStore.NetworkDriverInstance CreateClientNetworkDriver<T>(T netIf) where T : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    T netIf

    the instance of a INetworkInterface to use to create the driver

    Returns
    Type Description
    NetworkDriverStore.NetworkDriverInstance

    A new NetworkDriverStore.NetworkDriverInstance

    Type Parameters
    Name Description
    T

    the INetworkInterface type ot use

    CreateClientNetworkDriver<T>(T, NetworkSettings)

    Helper method for creating NetworkDriver suitable for client. The driver will use the specified INetworkInterface and is configured using the provided settings.

    Declaration
    public static NetworkDriverStore.NetworkDriverInstance CreateClientNetworkDriver<T>(T netIf, NetworkSettings settings) where T : unmanaged, INetworkInterface
    Parameters
    Type Name Description
    T netIf

    the instance of a INetworkInterface to use to create the driver

    NetworkSettings settings

    A list of the parameters that describe the network configuration.

    Returns
    Type Description
    NetworkDriverStore.NetworkDriverInstance

    A new NetworkDriverStore.NetworkDriverInstance

    Type Parameters
    Name Description
    T

    the INetworkInterface type ot use

    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)