docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SerializedMemberViewCollection

    A structure to hold a collection of SerializedMemberView.

    Implements
    IDisposable
    IEnumerable<SerializedMemberView>
    IEnumerable
    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 readonly struct SerializedMemberViewCollection : IDisposable, IEnumerable<SerializedMemberView>, IEnumerable
    Remarks

    This structure is not a view itself but rather a container for views.

    Constructors

    SerializedMemberViewCollection(Allocator)

    Initializes a new instance of SerializedMemberViewCollection using the given allocator.

    Declaration
    public SerializedMemberViewCollection(Allocator label)
    Parameters
    Type Name Description
    Allocator label

    The memory allocator label.

    Properties

    this[string]

    Gets the value associated with the specified key.

    Declaration
    public SerializedValueView this[string name] { get; }
    Parameters
    Type Name Description
    string name

    The key of the value to get.

    Property Value
    Type Description
    SerializedValueView
    Exceptions
    Type Condition
    KeyNotFoundException

    The key does not exist in the collection.

    Methods

    Add(SerializedMemberView)

    Adds the specified SerializedMemberView to the collection.

    Declaration
    public void Add(SerializedMemberView view)
    Parameters
    Type Name Description
    SerializedMemberView view

    The value of to add.

    Dispose()

    Releases all resources used by the SerializedMemberViewCollection.

    Declaration
    public void Dispose()

    GetEnumerator()

    Returns an enumerator that iterates through the SerializedMemberViewCollection.

    Declaration
    public SerializedMemberViewCollection.Enumerator GetEnumerator()
    Returns
    Type Description
    SerializedMemberViewCollection.Enumerator

    A SerializedMemberViewCollection.Enumerator for the SerializedMemberViewCollection.

    TryGetValue(string, out SerializedValueView)

    Gets the value associated with the specified key.

    Declaration
    public bool TryGetValue(string name, out SerializedValueView value)
    Parameters
    Type Name Description
    string name

    The key of the value to get.

    SerializedValueView value

    When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value.

    Returns
    Type Description
    bool

    true if the SerializedMemberViewCollection contains an element with the specified key; otherwise, false.

    Implements

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