docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SerializedObjectReaderConfiguration

    Parameters used to configure the SerializedObjectReader.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Serialization.Json
    Assembly: Unity.Serialization.dll
    Syntax
    public struct SerializedObjectReaderConfiguration

    Fields

    BlockBufferSize

    The buffer size, in bytes, of the blocks/chunks read from the input stream. The default size is 4096.

    Declaration
    public int BlockBufferSize
    Field Value
    Type Description
    int

    Default

    The default parameters used by the SerializedObjectReader.

    Declaration
    public static readonly SerializedObjectReaderConfiguration Default
    Field Value
    Type Description
    SerializedObjectReaderConfiguration

    NodeBufferSize

    The size of the Node buffer for internal reads. For optimal performance, this should be equal to the maximum batch size. The default size is 128.

    Declaration
    public int NodeBufferSize
    Field Value
    Type Description
    int

    OutputBufferSize

    The packed binary output buffer size, in bytes. This should be big enough to contain all string and primitive data for the needed scope. The default size is 4096.

    Declaration
    public int OutputBufferSize
    Field Value
    Type Description
    int

    StripStringEscapeCharacters

    Indicates if escape characters should be stripped when reading strings.

    Declaration
    public bool StripStringEscapeCharacters
    Field Value
    Type Description
    bool

    TokenBufferSize

    The internal token buffer size, in tokens. This should be big enough to contain all tokens generated from a block. The default size is 1024.

    Declaration
    public int TokenBufferSize
    Field Value
    Type Description
    int

    UseReadAsync

    If true, the input stream is read asynchronously. The default is true.

    Declaration
    public bool UseReadAsync
    Field Value
    Type Description
    bool

    ValidationType

    JSON validation type to use. The default is Standard.

    Declaration
    public JsonValidationType ValidationType
    Field Value
    Type Description
    JsonValidationType
    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)