Publisher
christinecdev
GDScript Code Upgrader
Code Upgrader is a tool designed to help upgrade your GDScript code from Godot 3 to Godot 4. This plugin automates the process of updating deprecated methods, properties, and syntax, ensuring your projects are compatible with the latest version of Godot.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Code Upgrader Plugin
Code Upgrader is a tool designed to help upgrade your GDScript code from Godot 3 to Godot 4. This plugin automates the process of updating deprecated methods, properties, and syntax, ensuring your projects are compatible with the latest version of Godot.
Notice
This plugin is a work-in-progress tool.
Please know that I might not have picked up all the changes, as there are a lot, so if you find ones that I haven’t added, you can let me know and I will implement those fixes into the plugin!
Join my Discord if you want to give feedback on this plugin or to help me update it: https://discord.gg/FnD8355w
Next Steps
- Do more focused testing on all the individual Nodes, especially for the TileMapLayer node, to see where I can add more conversions.
- Continuously test the updated functions with a variety of code snippets to ensure that all transformations are applied correctly and do not interfere with each other or modify unintended parts of the code.
- Optimize the performance, especially if applied to large bodies of code, and optimize or refactor as necessary to ensure efficiency.
Links
Usage Instructions
- Download the plugin and enable it.
- If enabled correctly, there should be a new dock on the left side of the editor.
- This dock has two parts: a code input and an output panel.
- We will paste our Godot 3 code in the input panel, and copy our Godot 4 code from the output panel.
- Press execute and your code should be converted!
Screenshots
Completion Log
- Replacements for
exportandonreadykeywords. - Transformation of
yieldstatements to await with various patterns. - Updated
signal connectionsyntax to use direct method calls. - Modified
signal connectionsyntax to includeparameterswith binding. - Simplified
move_and_slide()usage and removed specific property assignments. - Transformed
signal emissionsyntax todirect methodcalls. - Handled
signal emissionswithparameters. - Updated
fileopening syntax with a detailed commented guide. - Added the guide for the
set_cellandset_cell_vsyntax. - Changed access from
.cell_sizeto .tile_set.tile_size. - Transformed
Tweeninstantiation to direct instantiation with new instances. - Updated the keyword list to upgrade more terms.