godotjs / godotjs/javascript

Creating an object in js lost all built-in function links

Aperta
#191 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
investigation
Lingua principale
C++
Stelle
1.1k
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When is js I create a new Object :
new MyObject(); which extends Sprite2D, the object is well created, but the functions _process, _ready, _draw and all the built-in functions are not called.
It seems to only happen when I try to create an object which is not initially linked to the scene. I mean, I didn't put the script on an object on my scene in the editor.
I am using Godot 4.0.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.