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 in your scene and no other object or behavior can reference it.
Properties
Triggers Immediately
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.
Related
Spawn on Object
Spawn on Area
Disable Object
0 Comments