Consistency for NodePath doc code examples
Just makes a code example in NodePath.xml similar to the others
This commit is contained in:
parent
f7bc653cbe
commit
15aa04314d
1 changed files with 4 additions and 4 deletions
|
@ -101,12 +101,12 @@
|
||||||
Returns all subnames concatenated with a colon character ([code]:[/code]) as separator, i.e. the right side of the first colon in a node path.
|
Returns all subnames concatenated with a colon character ([code]:[/code]) as separator, i.e. the right side of the first colon in a node path.
|
||||||
[codeblocks]
|
[codeblocks]
|
||||||
[gdscript]
|
[gdscript]
|
||||||
var nodepath = NodePath("Path2D/PathFollow2D/Sprite2D:texture:load_path")
|
var node_path = NodePath("Path2D/PathFollow2D/Sprite2D:texture:load_path")
|
||||||
print(nodepath.get_concatenated_subnames()) # texture:load_path
|
print(node_path.get_concatenated_subnames()) # texture:load_path
|
||||||
[/gdscript]
|
[/gdscript]
|
||||||
[csharp]
|
[csharp]
|
||||||
var nodepath = new NodePath("Path2D/PathFollow2D/Sprite2D:texture:load_path");
|
var nodePath = new NodePath("Path2D/PathFollow2D/Sprite2D:texture:load_path");
|
||||||
GD.Print(nodepath.GetConcatenatedSubnames()); // texture:load_path
|
GD.Print(nodePath.GetConcatenatedSubnames()); // texture:load_path
|
||||||
[/csharp]
|
[/csharp]
|
||||||
[/codeblocks]
|
[/codeblocks]
|
||||||
</description>
|
</description>
|
||||||
|
|
Loading…
Add table
Reference in a new issue