docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddRawParameterStruct

    AddRawParameterStruct<T>(ref T)

    Add a new parameter structure to the list. Only one instance of any parameter type is stored at a time. Adding a new instance of an existing parameter structure will overwrite the one that is already stored.

    Declaration
    public void AddRawParameterStruct<T>(ref T parameter) where T : unmanaged, INetworkParameter
    Parameters
    Type Name Description
    T parameter

    Parameter structure to add.

    Type Parameters
    Name Description
    T

    Type of INetworkParameter to add.

    Exceptions
    Type Condition
    ArgumentException

    If the parameters contain invalid values. Note that this exception is only thrown when collections checks are enabled (i.e. in the editor). Otherwise an error is logged and the parameters are added anyway.

    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