Visibility Activator
A logic object that when sent an input will toggle the target objects themselves, toggle their colliders, or toggle their renderer. An activator will toggle properties of its targets if it is sent an output signal from a Button, Animation, Lock, Trigger or other logic objects.
Common uses
- Hide an object until after a lock is unlocked or a puzzle is solved
- Hide effects until you want to display them later
- Hide many objects to keep performance higher in an area a player has not yet explored
- Disable the collider of an object so that everything will pass through it
- Make a player drop an item
Properties
🔸Activation Type
There are 3 types:
Disable
: Always disable the targeted properties of all targets.Enable
: Always enable the targeted properties of all targets.Toggle
: If the target property is enabled disable it. If it's disabled enable it. Always takes the current state of the target property into consideration and does the opposite.
🔸Targeting Object
You can disable a prop's Object
property instead of targeting the Renderer and Collider to disable it completely. Also you can change the state of the Renderer and Collider properties even while the Object
is disabled with another Visibility Activator but the changes will be visible only after the Object
is enabled again.
Disabling the object will remove the prop from zooms, slots and inventories (this includes the trash inventory).
Disabling a property of an object while it is in a player inventory or in a slot will make the player drop the prop on the player's current location and disable the Targeted properties of the prop.
🔸Targeting Renderer
When the rendering components of a prop are disabled you can not see the prop but its physics properties remain unchanged. Meaning you can hide the prop, but it's colliders are still active.
🔸Targeting Collider
Disabling Colliders on a prop that is not static results in the prop falling through the floor.
Disabling Colliders on a prop that is static means it will not interact with other props using physics, e.g. you can throw other props through it.
Does not deactivate the Obstacle property.
🔸Active On Start
Activating the Visibility Activator with Active On Start
happens before the player can take control of the character (at the last frame of loading the level).
🔸Target Objects
To add a target object press the plus button and then select a prop(s) from the scene you want to target.
If none of the Targeting checkmarks are checked the Activator Component goes through the list of Targeting Objects but does nothing to the objects.