Struct OnInit

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

struct OnInit ;

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

Fields

NameTypeDescription
autoAddChild booladd it as a child (only for Node types)
autoCreate boolcreate it when the script is created
autoDelete booldelete it when the script is destroyed