OnInit

A UDA for marking script variables that should be automatically created when the script is created, right before _init() is called.

Options for automatically deleting or adding as child node the tagged variable can be set in the UDA.

Members

Static functions

makeDefault
OnInit makeDefault()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

autoAddChild
bool autoAddChild;

add it as a child (only for Node types)

autoCreate
bool autoCreate;

create it when the script is created

autoDelete
bool autoDelete;

delete it when the script is destroyed

canAddChild
enum bool canAddChild(R, Owner);
Undocumented in source.

Meta