Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity - Move Script-Files to other directory without reference loss

I have to move my GameManager-Script to a higher directory, due to accessability from another script.

But if I try to move the script from one folder to another directory - all references die! And I mean like - all references from all scripts.

It would be really hard to configure all scripts again from the scratch. Its like starting from the beginning.

Here is the GameManagement-Directory (Assets->Standard Assets):

enter image description here

Here is the the Directory, where I have to move the "GameManagement" to (Assets):

enter image description here

Maybe someone knows how to move scripts without reference loss.

Thanks in advance.

like image 564
1zz0 Avatar asked Mar 06 '23 22:03

1zz0


1 Answers

Ok guys I know what the problem was.

If you move files in Unity, make sure that you do that in the Explorer - NOT in the IDE.

Because you have to move the metadata-file with the script as well.

That worked for me.

like image 81
1zz0 Avatar answered Apr 26 '23 01:04

1zz0