docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetDriver

    GetDriver(int)

    Get a NetworkDriver previously added with AddDriver(NetworkDriver).

    Declaration
    public NetworkDriver GetDriver(int id)
    Parameters
    Type Name Description
    int id

    ID of the driver as returned by AddDriver(NetworkDriver).

    Returns
    Type Description
    NetworkDriver

    The NetworkDriver referred to by id.

    Remarks

    This method is provided as an escape hatch for use cases not covered by the MultiNetworkDriver API. Using this method to perform operations on a driver that could be performed through MultiNetworkDriver is likely to result in errors or corrupted state.

    Exceptions
    Type Condition
    ArgumentException

    If id does not refer to a driver that's part of the MultiNetworkDriver.

    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