-
-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module Initialization - Level Scene is running in-editor #1255
Comments
Thanks for the feedback! Unfortunately, this is not what The initialization levels have to do with the process of engine startup, so that things are registered in the right order. For example, some aspects of the editor need to be initialized before we can start registering editor-related classes. However, I understand your frustration! This is the number 2 complaint from people who are trying to use GDExtension to write gameplay code. This is a problem that needs some sort of answer, but we haven't come up with one yet. One possibility we've discussed is allowing developers to register scripts from godot-cpp (rather than extension classes), which would behave much more like GDScript (or GDNative from Godot 3), however, there's been some debate around whether or not this is a good idea. |
oh thanks for explaining, asked in the chats nobody gave a deep response like that, which makes sense in my mind now, and yeah, in one of your lives not long ago I shared this proposal: godotengine/godot-proposals#573 not much related to this topic in general, but I just think its strange that you need to check if is editor or not, since So this really needs to be discussed! |
Godot version
4.1 stable
godot-cpp version
4.1
System information
Linux
Issue description
When running the code with:
MODULE_INITIALIZATION_LEVEL_SCENE
the code runs in-editor, but that should only happens if the dev uses:
MODULE_INITIALIZATION_LEVEL_EDITOR
Steps to reproduce
Minimal reproduction project
NA
The text was updated successfully, but these errors were encountered: