godotengine / godotengine/godot-docs
Customizing module types initialization outdated
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:** stable (4.x)
**Issue description:**
**URL to the documentation page:** https://docs.godotengine.org/en/stable/contributing/development/core_and_modules/custom_modules_in_cpp.html#customizing-module-types-initialization
The `preregister_{module_name}_types()` does not work anymore. Instead probably `if (p_level == MODULE_INITIALIZATION_LEVEL_CORE)` inside of the `initialize_{module_name}_module()` should be used.
It would be awesome to have some documentation about when to use what value from the `ModuleInitializationLevel` enum.
This then also could be referenced in https://docs.godotengine.org/en/stable/classes/class_gdextension.html or vice versa.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.