Skip to content

Commit

Permalink
Merge pull request #71168 from guilleatm/master
Browse files Browse the repository at this point in the history
Improve description of `GetNodeOrDefault` in C# API
  • Loading branch information
YuriSizov authored Jan 11, 2023
2 parents 2ac2db8 + 6137929 commit f73cb4c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@ public T GetNode<T>(NodePath path) where T : class
}

/// <summary>
/// Fetches a node. The <see cref="NodePath"/> 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 <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"/>).
/// Similar to <see cref="GetNode"/>, but does not log an error if <paramref name="path"/>
/// does not point to a valid <see cref="Node"/>.
/// </summary>
/// <example>
/// Example: Assume your current node is Character and the following tree:
Expand Down

0 comments on commit f73cb4c

Please sign in to comment.