diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-11-25 14:35:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 14:35:45 +0100 |
commit | 934f6f2529132cc109d113c036a75cb4b025c962 (patch) | |
tree | 47453075e168307077b0a57473cddf14cf12c3d0 | |
parent | 967cc2c014c7f6be67d249a87df871a08d56afff (diff) | |
parent | 38fc09e6696b46cf5839e25dac5d19d6f03018fc (diff) |
Merge pull request #33867 from rcorre/get_node_docs
Clarify get_node vs get_node_or_null.
-rw-r--r-- | doc/classes/Node.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index cecbce90b3..e9fb47cbbd 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -251,7 +251,7 @@ <argument index="0" name="path" type="NodePath"> </argument> <description> - Fetches a node. The [NodePath] can be either a relative path (from the current node) or an absolute path (in the scene tree) to a node. If the path does not exist, a [code]null instance[/code] is returned and attempts to access it will result in an "Attempt to call <method> on a null instance." error. + Fetches a node. The [NodePath] can be either a relative path (from the current node) or an absolute path (in the scene tree) to a node. If the path does not exist, a [code]null instance[/code] is returned and an error is logged. Attempts to access methods on the return value will result in an "Attempt to call <method> on a null instance." error. [b]Note:[/b] Fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). [b]Example:[/b] Assume your current node is Character and the following tree: [codeblock] @@ -295,7 +295,7 @@ <argument index="0" name="path" type="NodePath"> </argument> <description> - Similar to [method get_node], but does not raise an error if [code]path[/code] does not point to a valid [Node]. + Similar to [method get_node], but does not log an error if [code]path[/code] does not point to a valid [Node]. </description> </method> <method name="get_parent" qualifiers="const"> |