diff options
author | Silc Renew <tokage.it.lab@gmail.com> | 2022-11-19 07:23:38 +0900 |
---|---|---|
committer | Silc Renew <tokage.it.lab@gmail.com> | 2022-11-19 15:06:25 +0900 |
commit | b9d1550590b94a3db00fe9373800256013ee078b (patch) | |
tree | 5e0dab567eab429545a99317e5878d5f9d02dfbe /doc | |
parent | 84c404f6bcce9ba112118d77afd6bd70a92774d1 (diff) |
Add option to get_path_to() to get the shortest path with unique name
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Node.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 21fb9d139c..af3cb8d216 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -384,8 +384,11 @@ <method name="get_path_to" qualifiers="const"> <return type="NodePath" /> <param index="0" name="node" type="Node" /> + <param index="1" name="use_unique_path" type="bool" default="false" /> <description> Returns the relative [NodePath] from this node to the specified [param node]. Both nodes must be in the same scene or the function will fail. + If [param use_unique_path] is [code]true[/code], returns the shortest path considering unique node. + [b]Note:[/b] If you get a relative path which starts from a unique node, the path may be longer than a normal relative path due to the addition of the unique node's name. </description> </method> <method name="get_physics_process_delta_time" qualifiers="const"> |