docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AdditionalPropertyContainer

    glTF object base class

    Inheritance
    object
    AdditionalPropertyContainer
    AccessorExtensions
    AccessorSparseExtensions
    AccessorSparseIndicesExtensions
    AccessorSparseValuesExtensions
    AnimationChannelExtensions
    AnimationChannelTargetExtensions
    AnimationExtensions
    AnimationSamplerExtensions
    AssetExtensions
    BufferExtensions
    BufferViewExtensions
    CameraExtensions
    CameraOrthographicExtensions
    CameraPerspectiveExtensions
    ExtrasContainer
    ImageExtensions
    MaterialExtensions
    MeshExtensions
    MeshPrimitiveExtensions
    NodeExtensions
    PbrMetallicRoughnessExtensions
    RootExtensions
    SamplerExtensions
    SceneExtensions
    SkinExtensions
    TextureExtensions
    TextureInfoExtensions
    Implements
    IPropertyContainer
    IReadOnlyPropertyContainer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Gltfast.Objects
    Assembly: Unity.Cloud.Gltfast.dll
    Syntax
    public class AdditionalPropertyContainer : IPropertyContainer, IReadOnlyPropertyContainer

    Properties

    Count

    Gets the number of additional properties.

    Declaration
    [JsonIgnore]
    public int Count { get; }
    Property Value
    Type Description
    int

    this[string]

    Gets the JSON Value for key.

    Declaration
    public Value this[string key] { get; }
    Parameters
    Type Name Description
    string key

    The property name.

    Property Value
    Type Description
    Value

    The property's value.

    Keys

    Gets an IEnumerable<T> containing the names of all properties.

    Declaration
    [JsonIgnore]
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<string>

    Methods

    Clear()

    Removes all properties.

    Declaration
    public virtual void Clear()

    ContainsKey(string)

    Determines whether the IPropertyContainer contains a property with the specified key.

    Declaration
    public bool ContainsKey(string key)
    Parameters
    Type Name Description
    string key

    The key to locate in the IPropertyContainer

    Returns
    Type Description
    bool

    true if the IReadOnlyPropertyContainer contains a property with the key; otherwise, false.

    GetEnumerator()

    Returns an enumerator over the properties.

    Declaration
    public PropertyEnumerator GetEnumerator()
    Returns
    Type Description
    PropertyEnumerator

    An enumerator yielding each Property.

    Remove(string)

    Removes the property key.

    Declaration
    public bool Remove(string key)
    Parameters
    Type Name Description
    string key

    The property name.

    Returns
    Type Description
    bool

    true if the property existed and was removed; otherwise false.

    Set<T>(string, T)

    Sets the property key to value, serialized to JSON.

    Declaration
    public virtual void Set<T>(string key, T value)
    Parameters
    Type Name Description
    string key

    The property name.

    T value

    The value to store.

    Type Parameters
    Name Description
    T

    The type of the value to serialize.

    TryGetValue<T>(string, out T)

    Tries to find a property of a key and deserializes its value to type T.

    Declaration
    public bool TryGetValue<T>(string key, out T value)
    Parameters
    Type Name Description
    string key

    Property key

    T value

    Resulting value

    Returns
    Type Description
    bool

    True if the property was found and successfully cast to type T. False otherwise. This includes target types that cannot be deserialized at all, like delegates or interfaces.

    Type Parameters
    Name Description
    T

    Desired target type

    Implements

    IPropertyContainer
    IReadOnlyPropertyContainer
    In This Article
    Back to top
    Copyright © 2026 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)