Move node to other project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gunno

Is there any way to easily move a node to another project? I have a lot of new content that I added to one project that I need in another.

:bust_in_silhouette: Reply From: Wakatta

Once the directory structure is the same copying will work just fine.

I tried copy + pasting and that doesn’t work… and what do you mean by directory structure? Sorry I am not familiar

gunno | 2023-02-15 16:36

When you say doesn't work what do you mean?

The only hindrance you can get from doing this are broken dependencies in scenes which is why your new project needs to match your old project before you start renaming or moving around stuff


#Old project directory structure

#new project directory structure

Wakatta | 2023-02-15 18:07

Oh okay, I get it, but I already manually moved the files. Thanks, this will help in future

gunno | 2023-02-15 18:16

I copied the files and fixed the dependencies. Every time i focus on a different window then tab back in, godot reimports assets. Every single time.
And half of the time if i tab out again without waiting for the reimport to finish, it pulls me back to godot
Guess ill just have to be all claustrophobic in the old project until i fix it. Unless i want to completely remake the game from scratch of course.

Edit: Restarted pc and it’s working now
Edit2: sometimes it still does it. Now with the original project aswell

TLDR be careful when moving files around i guess

Make the node you want to transfer a scene and move it’s file. If you want to keep it as a node put the node in another scene and move the scene then take the node from there.