Skip to main content

EditorLink

A class in Root.Township, the global namespace.

Serializable link to an asset by GUID, meant for editor use. In the game build every method is a stub.

Constructors​

MemberWhat it is
EditorLink()Creates an EditorLink with default values.

Fields​

2 private and internal fields
MemberWhat it is
private string guidGUID of the linked asset.
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
T Load<T>()Logs an error and returns null outside the editor.
void Set(Object value)Does nothing in the game build.
void SetIfNull(Func<Object> getValue)Does nothing in the game build.
void SetIfNull(Object value)Does nothing in the game build.

Used in​

Members of other types that take, return or hold a EditorLink: