Merge pull request #71168 from guilleatm/master

Improve description of `GetNodeOrDefault` in C# API
This commit is contained in:
Yuri Sizov 2023-01-11 19:27:04 +03:00 committed by GitHub
commit f73cb4c13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -48,13 +48,8 @@ namespace Godot
} }
/// <summary> /// <summary>
/// Fetches a node. The <see cref="NodePath"/> can be either a relative path (from /// Similar to <see cref="GetNode"/>, but does not log an error if <paramref name="path"/>
/// the current node) or an absolute path (in the scene tree) to a node. If the path /// does not point to a valid <see cref="Node"/>.
/// does not exist, a <see langword="null"/> instance is returned and an error
/// is logged. Attempts to access methods on the return value will result in an
/// "Attempt to call &lt;method&gt; on a null instance." error.
/// Note: Fetching absolute paths only works when the node is inside the scene tree
/// (see <see cref="IsInsideTree"/>).
/// </summary> /// </summary>
/// <example> /// <example>
/// Example: Assume your current node is Character and the following tree: /// Example: Assume your current node is Character and the following tree: