docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReadNetworkSerializable

    ReadNetworkSerializable<T>(out T)

    Read an INetworkSerializable

    Declaration
    public void ReadNetworkSerializable<T>(out T value) where T : INetworkSerializable, new()
    Parameters
    Type Name Description
    T value

    INetworkSerializable instance

    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    NotImplementedException

    ReadNetworkSerializable<T>(out T[])

    Read an array of INetworkSerializables

    Declaration
    public void ReadNetworkSerializable<T>(out T[] value) where T : INetworkSerializable, new()
    Parameters
    Type Name Description
    T[] value

    INetworkSerializable instance

    Type Parameters
    Name Description
    T

    the array to read the values of type T into

    Exceptions
    Type Condition
    NotImplementedException

    ReadNetworkSerializable<T>(out NativeArray<T>, Allocator)

    Read a NativeArray of INetworkSerializables

    Declaration
    public void ReadNetworkSerializable<T>(out NativeArray<T> value, Allocator allocator) where T : unmanaged, INetworkSerializable
    Parameters
    Type Name Description
    NativeArray<T> value

    INetworkSerializable instance

    Allocator allocator

    The allocator to use to construct the resulting NativeArray

    Type Parameters
    Name Description
    T

    the array to read the values of type T into

    Exceptions
    Type Condition
    NotImplementedException
    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)