From 566d751e390188590f6d88573b2558c08c8a30d9 Mon Sep 17 00:00:00 2001 From: CowThing Date: Mon, 30 May 2016 15:05:27 -0400 Subject: [PATCH] Filling in documentation VisibilityNotifier and VisibilityEnabler (2D and 3D). (cherry picked from commit 3ba4e6b2ac079c20d4e79f6e0d7dc1123ce49f25) --- doc/base/classes.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e8907391bfc..f14a0ebd8db 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -40728,8 +40728,10 @@ This method controls whether the position between two cached points is interpola + Enable certain nodes only when visible. + The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself. @@ -40738,6 +40740,7 @@ This method controls whether the position between two cached points is interpola + Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler is not in view. See the constants for enablers and what they affect. @@ -40746,13 +40749,16 @@ This method controls whether the position between two cached points is interpola + Returns whether the specified enabler was set to true or not. + This enabler will freeze [RigidBody] nodes. + This enabler will pause [AnimationPlayer] nodes. @@ -40760,8 +40766,10 @@ This method controls whether the position between two cached points is interpola + Enable certain nodes only when visible. + The VisibilityEnabler2D will disable [RigidBody2D], [AnimationPlayer], and other nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler2D itself. @@ -40770,6 +40778,7 @@ This method controls whether the position between two cached points is interpola + Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler2D is not in view. See the constants for enablers and what they affect. @@ -40778,19 +40787,25 @@ This method controls whether the position between two cached points is interpola + Returns whether the specified enabler was set to true or not. + This enabler will freeze [RigidBody2D] nodes. + This enabler will pause [AnimationPlayer] nodes. + This enabler will stop [Particles2D] nodes. + This enabler will stop the parent's _process function. + This enabler will stop the parent's _fixed_process function. @@ -40798,48 +40813,57 @@ This method controls whether the position between two cached points is interpola + Detect when the node is visible on screen. + The VisibilityNotifier is used to notify when its bounding box enters the screen, is visible on the screen, or when it exits the screen. + Set the visibility bounding box of the VisibilityNotifier. + Return the visibility bounding box of the VisibilityNotifier. + Return true if any part of the bounding box is on the screen. + Emitted when the VisibilityNotifier enters the screen. + Emitted when the VisibilityNotifier enters a [Camera]'s view. + Emitted when the VisibilityNotifier exits the screen. + Emitted when the VisibilityNotifier exits a [Camera]'s view. @@ -40848,48 +40872,57 @@ This method controls whether the position between two cached points is interpola + Detect when the node is visible on screen. + The VisibilityNotifier2D is used to notify when its bounding rectangle enters the screen, is visible on the screen, or when it exits the screen. + Set the visibility bounding rectangle of the VisibilityNotifier2D. + Return the visibility bounding rectangle of the VisibilityNotifier2D. + Return true if any part of the bounding rectangle is on the screen. + Emitted when the VisibilityNotifier2D enters the screen. + Emitted when the VisibilityNotifier2D enters a [Viewport]. + Emitted when the VisibilityNotifier2D exits the screen. + Emitted when the VisibilityNotifier2D exits a [Viewport].