godotengine / godotengine/godot-docs
Update _ready() and _enter_tree() docs with a note that they will silently fail in GDNative C++ if they haven't been registered in _register_methods()
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
3.2.3
**Issue description:**
In GDNative C++, _ready() and _enter_tree() will never be called, and there will be no warning in the log, if they haven't been registered by _register methods. This will remain true even if using request_ready().
I know this and I still forgot about it and wasted quite a bit of time on it. If it had been in the documentation I would have at least seen it sooner. Either way, I hope to save myself and others some pain in the future.
**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method-ready
https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method-enter-tree
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.