Skip to content

Fix hide global class error and add .uid for Godot 4 - #1

Open
HaruYou27 wants to merge 4 commits into
MAGGen-hub:masterfrom
HaruYou27:master
Open

Fix hide global class error and add .uid for Godot 4#1
HaruYou27 wants to merge 4 commits into
MAGGen-hub:masterfrom
HaruYou27:master

Conversation

@HaruYou27

Copy link
Copy Markdown

Godot docs
Using both class_name and add_custom_type() will cause hide global script errors.
Fix:

ERROR: Failed parse script res://Sphere-Forms-Godot-Plugin/addons/SphereFormsPlugin/CubeSphereMesh.gd                                            
Class "CubeSphereMesh" hides a global script class.
   at: reload_all_workspace_scripts (modules/gdscript/language_server/gdscript_workspace.cpp:233)
ERROR: Failed parse script res://Sphere-Forms-Godot-Plugin/addons/SphereFormsPlugin/OctaSphereMesh.gd
Class "OctaSphereMesh" hides a global script class.
   at: reload_all_workspace_scripts (modules/gdscript/language_server/gdscript_workspace.cpp:233)
ERROR: Failed parse script res://Sphere-Forms-Godot-Plugin/addons/SphereFormsPlugin/IcoSphereMesh.gd
Class "IcoSphereMesh" hides a global script class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant