I’ve gone back to working on an old project now which has 3 scenes in it. Whenever I open the “gameplay” scene after having the “mainmenu” scene open, I get a bunch of errors like this:
“warning: Ignoring imported type ‘blahblah’ since the current assembly already has a declaration with the same name”
I wasn’t getting this before. What does that mean and why do I care? These are all scenes within the same project.
I’ve got the same error opening the project in a different mac. Probably you are opening the project from a different account name. I’ve tryed to become the files owner and to reimport the project without luck. The only way I found to solve that is to make a new account with the same user name and subdirectory.
Did you ever build the finished executable game from the project? If so, is it possible that you tucked the executable file into the project’s assets folder to tidy it away (since it’s a shelved project, I mean)?
The executable is actually a folder which contains compiled versions of your scripts and Unity will scan inside this folder for assets. Unity can see and use functions in compiled CLR assemblies - your executable defines them and your script defines them, so effectively they are defined twice.
If this is your problem then you’ll probably solve it by taking the executable out of the assets folder.