diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-15 17:10:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-15 17:10:33 +0200 |
commit | 3fc1f7dfbeb038ca7db8da637b67282c800b492e (patch) | |
tree | 3e7fb628d7165570b61b85c48adae55eb48efa9b /doc | |
parent | 09e94aa087485ccf5b4318c4a619db4f6b067cc5 (diff) |
doc: Add note about VisibilityNotifier.is_on_screen after instantiation
Fixes #9430.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/VisibilityNotifier.xml | 1 | ||||
-rw-r--r-- | doc/classes/VisibilityNotifier2D.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/VisibilityNotifier.xml b/doc/classes/VisibilityNotifier.xml index e30078d82f..062371ba29 100644 --- a/doc/classes/VisibilityNotifier.xml +++ b/doc/classes/VisibilityNotifier.xml @@ -16,6 +16,7 @@ </return> <description> If [code]true[/code], the bounding box is on the screen. + Note: It takes one frame for the node's visibility to be assessed once added to the scene tree, so this method will return [code]false[/code] right after it is instantiated, even if it will be on screen in the draw pass. </description> </method> </methods> diff --git a/doc/classes/VisibilityNotifier2D.xml b/doc/classes/VisibilityNotifier2D.xml index 5689ced4bf..7b553c7518 100644 --- a/doc/classes/VisibilityNotifier2D.xml +++ b/doc/classes/VisibilityNotifier2D.xml @@ -16,6 +16,7 @@ </return> <description> If [code]true[/code], the bounding rectangle is on the screen. + Note: It takes one frame for the node's visibility to be assessed once added to the scene tree, so this method will return [code]false[/code] right after it is instantiated, even if it will be on screen in the draw pass. </description> </method> </methods> |