Api Editor MetaData
class

MetaData

public class MetaData

A class to CRUD json files. This should probably be a generic class since it seems like we might want to do this with stuff other than meta files. But there's no need for that right now, so lets leave it simple.

Properties

Name Type Description
FilePath String File path to the metadata file.

Methods

JsonElement? GetElement(String keyName)
T Get(String keyName, T defaultValue = null)
String GetString(String keyName, String defaultValue = null)
Boolean GetBool(String keyName, Boolean defaultValue = False)
Int32 GetInt(String keyName, Int32 defaultValue = 0)
Single GetFloat(String keyName, Single defaultValue = 0)
Void Set(String name, T value)

Set a value in the metadata file. If the value is null, the key will be removed.

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.MetaData