From 642addcc991df33c3aab11741368345686f35b51 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 30 Sep 2021 12:50:45 +0200 Subject: [PATCH] Clarify what the `Node.filename` property contains (cherry picked from commit f23b9170074609b44e2c744646f7029b9306df41) --- doc/classes/Node.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index eb59a3de73..70da0e4385 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -687,7 +687,7 @@ The override to the default [MultiplayerAPI]. Set to [code]null[/code] to use the default [SceneTree] one. - When a scene is instanced from a file, its topmost node contains the filename from which it was loaded. + If a scene is instantiated from a file, its topmost node contains the absolute file path from which it was loaded in [member filename] (e.g. [code]res://levels/1.tscn[/code]). Otherwise, [member filename] is set to an empty string. The [MultiplayerAPI] instance associated with this node. Either the [member custom_multiplayer], or the default SceneTree one (if inside tree).