Api Sandbox Metadata
class

Metadata

public class Metadata

A simple class for storing and retrieving metadata values.

Constructors

Metadata()

Methods

Void SetValue(String key, Object value)

Set a value with the specified key.

Boolean TryGetValue(String key, T outValue)

Try to get a value of the specified type.

T GetValueOrDefault(String key, T defaultValue = null)

Get the a value. If it's missing or the wrong type then use the default value.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Metadata