docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct JsonWriter.ObjectScope

    Disposable struct to manage opening and closing object scopes.

    Implements
    IDisposable
    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 JsonWriter.ObjectScope : IDisposable

    Constructors

    ObjectScope(JsonWriter, string)

    Creates a new object scope for the given JsonWriter

    Declaration
    public ObjectScope(JsonWriter writer, string key)
    Parameters
    Type Name Description
    JsonWriter writer

    The writer to write to.

    string key

    The key to write.

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)