Okay, so I am making a custom editor game. There is a variable called "selectedObject", that stands for the object that is currently selected and ready to be edited.
And whenever I click the "Delete" button in game mode, to delete the selected object, I get this error... :(
destroy GameObject, if you want to destroy whole object. Transform is just a component that can't be destroyed without GameObject
answered Aug 18 '12 at 08:02 PM