Creating an object in js lost all built-in function links
- 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
Research direction
Start by reproducing the issue in Godot 4.0 with a JavaScript MyObject extending Sprite2D, comparing an instance created with new MyObject() against one linked to a scene in the editor. Check whether _process, _ready, _draw, and other built-in functions are called in each case. Done means dynamically created objects receive the expected Godot lifecycle callbacks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- godot, javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100