docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IPropertyContainer

    Provides access to additional properties on glTF extension or extras objects. Those are neither defined in the glTF specification (the currently supported version) nor any extension supported by glTFast.

    Inherited Members
    IReadOnlyPropertyContainer.Count
    IReadOnlyPropertyContainer.ContainsKey(string)
    IReadOnlyPropertyContainer.Keys
    IReadOnlyPropertyContainer.this[string]
    IReadOnlyPropertyContainer.GetEnumerator()
    IReadOnlyPropertyContainer.TryGetValue<T>(string, out T)
    Namespace: Unity.Cloud.Gltfast.Objects
    Assembly: Unity.Cloud.Gltfast.dll
    Syntax
    public interface IPropertyContainer : IReadOnlyPropertyContainer

    Methods

    Clear()

    Removes all properties.

    Declaration
    void Clear()

    Remove(string)

    Removes the property key.

    Declaration
    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(string, bool)

    Sets the property key to a boolean value.

    Declaration
    void Set(string key, bool value)
    Parameters
    Type Name Description
    string key

    The property name.

    bool value

    The value to store.

    Set(string, double)

    Sets the property key to a numeric value.

    Declaration
    void Set(string key, double value)
    Parameters
    Type Name Description
    string key

    The property name.

    double value

    The value to store.

    Set(string, long)

    Sets the property key to an integer value.

    Declaration
    void Set(string key, long value)
    Parameters
    Type Name Description
    string key

    The property name.

    long value

    The value to store.

    Set(string, string)

    Sets the property key to a string value.

    Declaration
    void Set(string key, string value)
    Parameters
    Type Name Description
    string key

    The property name.

    string value

    The value to store.

    Set<T>(string, T)

    Sets the property key to value, serialized to JSON.

    Declaration
    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.

    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)