Skip to content

VisibilityManager

Inherits: Node

Update visibility based on State changes to a StateMachine

Description

DEPRECATED in favor of StateWatcher with a child Effect. The VisibilityManager manages the visibility of its parent node based on the current State of a StateMachine. This enables nodes to be visible or invisible only during the correct state(s), allowing menus to hide themselves or become visible depending on the state. Optionally, Transition nodes can be added as a child to VisibilityManager to play an animation to show or hide the node.

Properties

Type Name Default
StateMachine state_machine
State state
Resource[] visible_during []
CustomLogger logger

Methods

Returns Signature
bool has_transitions()
void enter()
void exit()

Property Descriptions

state_machine

StateMachine state_machine

The state machine instance to use for managing state changes

state

State state

Toggles visibility when this state is entered

visible_during

Resource[] visible_during = []

Toggles visibility when any of these states are entered, but the main state exists in the state stack

logger

CustomLogger logger

Note

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

has_transitions()

bool has_transitions()

Note

There is currently no description for this method. Please help us by contributing one!

enter()

void enter()

Note

There is currently no description for this method. Please help us by contributing one!

exit()

void exit()

Note

There is currently no description for this method. Please help us by contributing one!