Best practice for filesystem storage of scenes and resources

Godot Version 4.3

This is a newbie question. I’ve used Godot for about a month or so now. One of the things I’ve noticed is I might want to reuse a scene that I created in another project. For ex, a character scene, enemy scene, etc. Rather than recreate the wheel I’d like to bring those scenes into a new project which Godot allows me to do. However, I always have to ‘fix dependencies’. I understand what that means but my question is - is there anyway for me to create a single folder in my filesystem that contains all of the shareable things I want between projects, then just point any of my Godot projects to that location? It doesn’t seem to let me do that since a Godot project only knows about its ‘own filesystem’ or its root directory. is there a way to do this that I’m not aware of or do I need to copy and paste all of the files I want from one project to another thereby duplicating these files over and over in different projects?

Thanks for the help,

Scott

Godot doesn’t have anything for this, probably because you could make use of file-system level features like symbolic links, or if you don’t intend to change the file(s), hard links. However they will still require the exact same file structure for any dependencies, most Godot paths are absolute starting from the project folder or “res://”, so your scene file must includes resources from the exact same path too.

OK. so I’m guessing Godot developers just copy/paste folders of scenes and resources they want to reuse from projects into other projects?

You could use Git repos of your shared assets and clone then into a project. Gitignore the directories, no git ninja, might be a better way.

1 Like

It’s pretty rare to copy anything over for projects personally. Godot already handles the basic components so I only write specialized scripts and assets.