-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node active property and lifecycle methods
Added node active property to the base Node class which acts as a universal "disable node" feature. When a node is inactive, it is not visible and cannot process scripts, physics, or be a valid camera. Much like visibility, if an ancestor node is inactive, this node is as well. There are new signals and methods for querying the node active state such as `is_node_active_in_tree()` to match the visibility features. There's a new option in the settings to turn on checkboxes in the scene tree for easier access of the node active state. Finally, there are two new virtual methods that are accessible via user which can act as lifecycle calls. `_node_active()` can be used for initialization and is called after `_ready()` has completed if the node is active. It is also called if a node becomes active in tree. `_node_inactive()` can be used for cleanup and is called before a node exits the tree or if it becomes inactive in tree.
- Loading branch information
1 parent
26d1577
commit 4aeb7e5
Showing
16 changed files
with
500 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.