-
Notifications
You must be signed in to change notification settings - Fork 27
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
Set global script classes on Godot 4 #335
Comments
So, the global classes are moved to All that aside, if the ModLoader is installed by the developer, the global class method is not needed for script extensions, since all global classes are already added by the editor and included on export. This could only be an issue for the self setup. |
This is the function we are talking about, right? godot-mod-loader/addons/mod_loader/internal/script_extension.gd Lines 113 to 132 in 19a7b7f
|
No, the problem is the setting the global classes since it seems there is no straightforward equivalent in Godot 4. In the function you mention I replaced the line 121 with But as Qubus0 said this is only a problem with the self setup. I got it working without changing the lines where the global classes are set, since the code is not being executed, I don't get any error |
Hi, in Godot 4,
ProjectSettings.get_setting("_global_script_classes")
returns nil. Seems like the equivalent isProjectSettings.get_global_class_list()
, however, I can't find a function to set the global class list. So, script extensions don't work on Godot 4 at the moment. If anyone finds a solution, please let me know.The text was updated successfully, but these errors were encountered: