godotjs / godotjs/javascript

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

Open
#191 1 comment 0 reactions 0 assignees View on GitHub
investigation
Dominant language
C++
Stars
1.1k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.