Document toolboxDocument toolbox

2023.1.1344.2 GameObject Destroyer



Overview

This component can be used to remove/destroy GameObjects from the scene that hit its collider during play mode.

Be aware, it will destroy anything with a Rigidbody. So, make sure to not place static Rigidbodies inside of the destroyer’s collider or set the Tag field in order to prevent curtain destructions.


Where to find

The GameObject Destroyer can be found under Mechanics > Spawning> Add GameObject Destroyer.

This will add the GameObject Destroyer component to the currently selected object or create a new empty GameObject with the component attached if no objects are selected.

 


Feature Layout

The image below shows the complete feature layout of the GameObject Destroyer

 

 

 GameObject Destoyer

Tag

[Optional] This field can be set to only destroy object having the given 'GameObject' Tag

 


How to use

Workflow for a setting up a simple Destroyer, who destroys any Rigidbody entering its Collider.

  1. Add a GameObject Destroyer as component to a GameObject.

  2. Adjust the size of its Collider, if wanted.

  3. Go into play mode.

Prespective Documentation