I had a full project running and working up until yesterday. I added only one object to my scene and later removed it and re-saved the scene. I made no changes to my scripts.
Now, I keep getting this message:
NullReferenceException: Object reference not set to an instance of an object StartScript.OnMouseUp () (at Assets/StartScript.cs:14) UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32)
All I do in this line of script is finding a gameobject and setting its transform.poistion= new Vector3(0,0,0); I keep getting an error that the transform of the object is null, but this object is still part of the game. I never touched it!
Do you know how to solve this problem? I'm working on Unity3D version 5.