docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataInstance

    Contains all the information related to a single instance part of the dataset.

    Inheritance
    object
    MetadataInstance
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.DataStreaming.Metadata
    Assembly: Unity.Cloud.DataStreaming.Runtime.dll
    Syntax
    public sealed class MetadataInstance

    Properties

    AncestorIds

    Hierarchy of this instance represented in a list where the first element is the top level parent (root) of the instance and the last element is the direct parent.

    Declaration
    public IReadOnlyList<InstanceId> AncestorIds { get; }
    Property Value
    Type Description
    IReadOnlyList<InstanceId>
    Remarks

    To get MetadataInstances for each ancestor part of this list, you can use WhereInstanceEquals(IEnumerable<InstanceId>). To get the siblings of this instance, you can filter a query using WhereHasAncestor(InstanceId) by giving the last item of the AncestorIds.

    Geometry

    Declaration
    public Geometry? Geometry { get; }
    Property Value
    Type Description
    Geometry?

    HasChildren

    true if this instance has children, false otherwise.

    Declaration
    public bool HasChildren { get; }
    Property Value
    Type Description
    bool
    Remarks

    To get its children, you can filter a query using WhereHasAncestor(InstanceId).

    Id

    Unique identifier associated with the instance allowing to retrieve specified instance data via WhereInstanceEquals(IEnumerable<InstanceId>).

    Declaration
    public InstanceId Id { get; }
    Property Value
    Type Description
    InstanceId

    Name

    The name of the instance from the source file.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Properties

    Dictionary of key value pairs where the value is a string stored in a IMetadataValue.

    Declaration
    public IReadOnlyDictionary<string, IMetadataValue> Properties { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, IMetadataValue>
    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)