This repo is an example of how to implement a add-ons loader in Godot. There is 2 main proyects and 2 add-ons proyects, which contains:
- GodotGDScript: A version of a small Godot 3.5 game. It contains the
AddonsLoader.gdscript that loads all.pckand.zipaddons. The add-ons must be installed inuser://addons. - GodotMono: A version of a small Godot 3.5 Mono game. This proyect is very interesting for me because it contains the
AddonsLoader.cs. This class can loads.pckand.zipGodot packages that contains GDScript add-ons (like the GodotGDScript proyect), and also.dlllibraries than use Godot Mono runtime, allowing loading of add-ons programmed in both languages. It uses the same folder like GodotGDScipt. - AddonGDScript: A example of a GDScript add-on that prints a hello world message on load. You can compress this folder as
.zipfile and installs it inuser://addons. - AddonMono: A example of a Mono add-on that prints a hello world message on load. It is a .NET 6 library proyect, and you can run
dotnet buildover the folder to compilate the.dllfile and install it in the add-ons folder used in the main proyects.
