Destroy Object

Description

The Destroy Object behavior will remove the selected object from your scene immediately when the behavior is executed. Once your object is destroyed it no longer exists, and no other object or behavior can reference it.

 

 

Properties

Object A

This is the object you want to destroy. By default the current object is selected, but you can tap the graphic and choose any other object in your scene.

Permanent

This switch is for memory management. By switching this on, you are preventing this object from spawning later and will take up less memory.

 

Outputs

Object ID

This outputs the Object ID.

 

Examples

If you want to remove an enemy from your scene after the player has shot it, use the destroy object behavior. Additionally, the destroy object behavior can be used to improve performance by removing objects that are no longer needed.

Download Example Project

 

Related

 

 

DestroyObjectReference.gif

Have more questions? Submit a request

0 Comments

Article is closed for comments.