-
-
Notifications
You must be signed in to change notification settings - Fork 18
instance_destroy
CryoEagle edited this page Jan 5, 2019
·
1 revision
Destroys selected object
instance_destroy(go)
Argument | Description |
---|---|
GameObject go |
GameObject to be destroyed |
Returns: N/A
This function will delete your selected object.
if (mouse_check_button_pressed(MouseButtons.mb_right))
{
instance_destroy(this);
}
This code will delete GameObject
with this code.
Back to Instances