|
hi , when I try to create something in the project window , whether it's a script, material , or anything it seems I can't! I get this error : "NullReferenceException: Object reference not set to an instance of an object" . I have to mention that it's a teamwork and I'm continueing the project and someone has emailed me this project . I have unchecked read-only of the folders . I don't get what's wrong with it!
(comments are locked)
|
|
This issue (for me anyway) was caused when I moved / copied the project folder with Unity and Monodevelopment still open. If you simply right click in the project tab space and select "reimport all" it could fix your issue. I don't know if this will fix your issue, but it is worth a shot. MORAL of my story: if you are going to modify, move, or do anything to a a Unity project folder you should probably shut down Monodevopment and Unity prior to doing so. If you want to move the entire project to a difference location then you're of course right, you have to shutdown Unity before you move or zip the project. Basically you shouldn't touch anything inside a project folder manually. Just treat a project folder like a single file. Same goes for the assets inside your assets folder. Never move a file / asset outide of Unity. Unity will loose track of the asset. All old references to this asset will be broken and Unity will just recognise a new asset at the new location. If you want to move / rename an asset always do it inside Unitys Project view. Also keep in mind when you want to copy / move an asset from another project you should export all stuff you want to copy into a unitypackage and import it in the other one. That way all preferences will be copies as well.
May 04 '12 at 07:44 PM
Bunny83
You know a lot for a rabbit! Your comment outlined things I commonly do but really never considered the negative ramifications. Good points, from now on I'm not going to so much as have the project folder open if I'm in Unity. It's just too easy to start shuffling things around and forget.
May 04 '12 at 08:23 PM
oldsouldier
(comments are locked)
|
