From f23b9170074609b44e2c744646f7029b9306df41 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 --- 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 608d76cd9f3..f5766c87c03 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -701,7 +701,7 @@ The override to the default [MultiplayerAPI]. Set to [code]null[/code] to use the default [SceneTree] one. - When a scene is instantiated 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).