Creating an object in js lost all built-in function links
未关闭
investigation
- 主要语言
- C++
- 星标
- 1.1k
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
调研方向
首先,在 Godot 4.0 中使用一个继承 Sprite2D 的 JavaScript MyObject 重现该问题,将使用 new MyObject() 创建的实例与在编辑器中链接到场景的实例进行比较。检查 _process、_ready、_draw 和其他内置函数在每种情况下是否都会被调用。当动态创建的对象收到预期的 Godot 生命周期回调时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- godot, javascript
- 领域
- game-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100