-
wondering if we can add some placeholders or variables to the editor's placeholder for each scene via code specifically in init() function? e.g |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Most If possible, perform initialisation inside a Node's |
Beta Was this translation helpful? Give feedback.
Most
gd
package functionality is invalid beforegdextension.Link
is called, as this is what connects everything in the package up to Godot. You're probably calling this inmain
which is afterinit
sogd
functions won't work inside ainit
function. Even if you made sure to callgdextension.Link
beforehand, not everything from Godot is initialised when Go starts up.If possible, perform initialisation inside a Node's
Ready
implementation. There isn't a preload equivalant yet, I'll have a look at this, it will probably be based on struct tagging if added. At this stage. Agd.ResourceLoader
can be added to your struct, it's a singleton so it will be instantiated for you and I believe it has aL…