Did you add an object to your scene and need to remove it now? Or perhaps you need to remove an object while playing your game? Then you are in the right place!
The first situation is rather simple to deal with, while the second will require some logic.
- Tap on the object you would like to remove. The ToolBar options will change to show specific actions you can take on the object.
- Tap on Delete. The object should now disappear from your scene.
https://wiki.hypehype.com/how_to/delete-from-scene.mp4
And that's it! You have successfully removed an object from your scene.
- Add any object from the Asset library to your scene. In this example, we will use the HypeHype Cube.
- Add the following nodes to your scene:
- Destroyer
- Interval
- Select the Destroyer node and drag a link from Target to the HypeHype Cube. This sets the cube as the target of the Destroyer node.
- Open the Interval node, and drag a link from On Time to Destroyer - Execute. This will make it so that the cube will be destroyed once the timer ends.
- Playtest and wait. The cube should disappear in a second!
We are using the predefined settings fro the Interval node, so it will execute at start, and then execute the Destroyer after one second has passed. You can change this variable to make it happen sooner or later.
- Find different ways to execute the Destroyer. It all comes down to the nature of your game. You can set it up to execute when the player collides with the object using a Collision Trigger, for example.
Pro Creator Tip: Destroy objects you no longer need in your game! For example, if your character walks past a bunch of objects and doesn't need to go back, you can destroy these objects to save space.