Set Visibility

Description

The Set Visibility behavior will hide or show the selected object. Hidden objects are still active in your scene, all behaviors continue to run and objects can still collide with them - they will simply just not be visible in your seen.

 

Properties

Object A

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

Show Graphic

Makes a hidden object visible again. This only affects objects that are hidden, not transparent.

Hide Graphic

Make the selected object invisible. The object is still active in the world and can be interacted with, only the graphic can no longer be seen.

Change Secondary

If this toggle is enabled, it will change the visibility of the secondary graphic of the object instead. For health bars, this will affect the bar of the object and for joysticks, this will affect the joystick ball of the object.

 

Outputs

Object ID

This outputs the Object ID.

 

Examples

You can hide and show menus as the user interacts with them. For example, opening your inventory should show it and closing your inventory should hide it.

 

Related

Set Color

 

 

0 Comments

Article is closed for comments.