TIM NEVILLE
Reusable Code in Godot with Symlinks (on Windows)

July 17, 2024

Share assets, code and editor scripts between projects without duplicating them, or having to update shared code or assets between Godot projects.

The solution I use is to have what I call my “Godot Package” in a folder in one location on my drive, and use Symlinks to make it appear like the folder is in the Godot project. Changes made to the files are as though they’re a copy in the project but because all my projects have symlinks to this same folder, the code is up to date for all. In addition this folder is under version control, so any issues can be rolled back and changes synced between computers.

  1. Download and install Link Shell Extension

  2. Make a folder somewhere on your drive for your assets, code etc to go into (ideally under version control like anything you care about)

  3. Right Click on the folder and select “Pick Source”

    Pick Source

  4. Navigate to Godot Project directory root folder (can be a subfolder, but I prefer to put in the root folder)

  5. Right Click and select “Drop As…” and then select “Symbolic Link”

    Drop Link

  6. ENJOY. The folder should now appear in your Godot Project FileSystem as though the files and folders we’re in the project itself.

    Fin