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
Name | Type | Description |
---|---|---|
autoAddChild
|
bool | add it as a child (only for Node types) |
autoCreate
|
bool | create it when the script is created |
autoDelete
|
bool | delete it when the script is destroyed |