|
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... :( Any ideas?
(comments are locked)
|
|
Destroy(selectedObject.gameObject); destroy GameObject, if you want to destroy whole object. Transform is just a component that can't be destroyed without GameObject Thanks, that worked! :)
Aug 18 '12 at 08:07 PM
THEpancakes
(comments are locked)
|
