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