From 6137929f52806d4c08286011c942c8705a1ac59b Mon Sep 17 00:00:00 2001 From: Guillermo Date: Tue, 10 Jan 2023 18:45:59 +0100 Subject: [PATCH] Improve description of `GetNodeOrDefault` in C# API Indenting with spaces and added a line break Co-authored-by: Raul Santos --- .../GodotSharp/Core/Extensions/NodeExtensions.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs index 03996bafdde9..8325af034ca3 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs @@ -48,13 +48,8 @@ public T GetNode(NodePath path) where T : class } /// - /// Fetches a node. The 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 instance 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. - /// Note: Fetching absolute paths only works when the node is inside the scene tree - /// (see ). + /// Similar to , but does not log an error if + /// does not point to a valid . /// /// /// Example: Assume your current node is Character and the following tree: