This commit is contained in:
Ruan Lucas
2023-06-03 12:03:21 -04:00
parent 88a5e07f2e
commit 50639e2378

View File

@@ -465,17 +465,17 @@ public:
public: public:
/// <summary> /// <summary>
/// Tries to find the actor with the given parentTag (returns the first one found). /// Tries to find the actor with the given tag (returns the first one found).
/// </summary> /// </summary>
/// <param name="parentTag">The parentTag of the actor to search for.</param> /// <param name="tag">The tag of the actor to search for.</param>
/// <param name="root">The custom root actor to start searching from (hierarchical), otherwise null to search all loaded scenes.</param> /// <param name="root">The custom root actor to start searching from (hierarchical), otherwise null to search all loaded scenes.</param>
/// <returns>Found actor or null.</returns> /// <returns>Found actor or null.</returns>
API_FUNCTION() static Actor* FindActor(const Tag& tag, Actor* root = nullptr); API_FUNCTION() static Actor* FindActor(const Tag& tag, Actor* root = nullptr);
/// <summary> /// <summary>
/// Tries to find the actors with the given parentTag (returns all found). /// Tries to find the actors with the given tag (returns all found).
/// </summary> /// </summary>
/// <param name="parentTag">The parentTag of the actor to search for.</param> /// <param name="tag">The tag of the actor to search for.</param>
/// <param name="root">The custom root actor to start searching from (hierarchical), otherwise null to search all loaded scenes.</param> /// <param name="root">The custom root actor to start searching from (hierarchical), otherwise null to search all loaded scenes.</param>
/// <returns>Found actors or empty if none.</returns> /// <returns>Found actors or empty if none.</returns>
API_FUNCTION() static Array<Actor*> FindActors(const Tag& tag, Actor* root = nullptr); API_FUNCTION() static Array<Actor*> FindActors(const Tag& tag, Actor* root = nullptr);