docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkDataStreamParameter

    The NetworkDataStreamParameter is used to set a fixed data stream size.

    Implements
    INetworkParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public struct NetworkDataStreamParameter : INetworkParameter
    Remarks

    The DataStreamWriter will grow on demand if the size is set to zero.

    Fields

    size

    Size of the default DataStreamWriter

    Declaration
    public int size
    Field Value
    Type Description
    int

    Methods

    Validate()

    Validate the settings.

    Declaration
    public bool Validate()
    Returns
    Type Description
    bool

    True if the settings are valid, false otherwise.

    Implements

    INetworkParameter
    In This Article
    Back to top
    Copyright © 2025 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)