I have recently started using version control in MonoDevelop and have discovered that if I include a folder containing for example Scenes that they will be included when I push changes to master.

My structure is:


--> Armour.cs

--> Inventory.cs


--> Scene01.unity

However when I reopen the unity project and look at the code solution only the Script directory and the files within it appear and the Scenes folder is absent.

Strangely enough Scene01.unity is still getting picked up if I make a change and go to commit changes.

This is what I want my project to look like

Does anyone know why this is happens and if there is any way to resolve this?

NOTE: As a basic work around I can manually include the file when it disappears however when I have a large amount of assets this could become a painful task. Also if I load the project using MonoDevelop it loads fine, but opening from Unity itself seems to overwrite the solution files.

  • \$\begingroup\$ What SCM are you using, specifically? Git? \$\endgroup\$
    – Grey
    Commented Feb 2, 2014 at 19:04
  • \$\begingroup\$ @Grey Yes I am using Git \$\endgroup\$ Commented Feb 2, 2014 at 22:55
  • \$\begingroup\$ I don't think its anything to do with Git itself, I fairly certain that the issue is with Unity making changes to the solution when it loads from the unity interface. If I check the diff of the solution I can see it actually drops the folders I have added with non-code related assets. \$\endgroup\$ Commented Feb 2, 2014 at 23:07
  • \$\begingroup\$ To my knowledge, Unity is actually managing the MonoDevelop solution file, and it will only include the actual scripts (as well as text and XML files, in case they are available), but none of the other assets. \$\endgroup\$
    – xeophin
    Commented Feb 3, 2014 at 7:10
  • \$\begingroup\$ @xeophin that sounds like what is happening, do you know of any way this can be disabled or changed so that this does not happen? \$\endgroup\$ Commented Feb 3, 2014 at 8:54

1 Answer 1


As far as I can tell, there is no problem with your tools.

Git is saving the changes and your repository is working as expected, according to what you're saying. On the other hand, MonoDevelop is a tool for code editing, and the Unity editor is the tool for managing assets and the whole project.

This is an example project and, as you can see, in both MonoDevelop and Visual Studio, the solution loads the scripts only; because that's the idea.

Unity Project window

Unity Project window

MonoDevelop Solution panel

MonoDevelop Solution panel

Visual Studio Solution panel

Visual Studio Solution panel


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .