logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHierarchyUtilsTests

    Tests for UnityHierarchyUtils. Uses real GameObject hierarchies and the always-present "Untagged" tag, avoiding scene-wide Find queries that depend on other objects.

    Inheritance
    object
    UnityHierarchyUtilsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityGlobal.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityHierarchyUtilsTests

    Constructors

    UnityHierarchyUtilsTests()

    Declaration
    public UnityHierarchyUtilsTests()

    Methods

    FindChildrenWithTag_NoMatch_ReturnsNull()

    Declaration
    public void FindChildrenWithTag_NoMatch_ReturnsNull()

    FindChildrensWithTag_MatchingUntagged_ReturnsAll()

    Declaration
    public void FindChildrensWithTag_MatchingUntagged_ReturnsAll()

    GetAllRectTransformsInHierarchy_ExcludeRoot_OmitsRoot()

    Declaration
    public void GetAllRectTransformsInHierarchy_ExcludeRoot_OmitsRoot()

    GetAllRectTransformsInHierarchy_IncludeRoot_ReturnsRootAndChildren()

    Declaration
    public void GetAllRectTransformsInHierarchy_IncludeRoot_ReturnsRootAndChildren()

    GetAllRectTransformsInHierarchy_NullRoot_ReturnsEmpty()

    Declaration
    public void GetAllRectTransformsInHierarchy_NullRoot_ReturnsEmpty()

    GetGameObjectPath_NestedObject_ReturnsFullSlashPath()

    Declaration
    public void GetGameObjectPath_NestedObject_ReturnsFullSlashPath()

    GetGameObjectPath_Null_Throws()

    Declaration
    public void GetGameObjectPath_Null_Throws()

    GetGameObjectPath_RootObject_ReturnsSingleSegment()

    Declaration
    public void GetGameObjectPath_RootObject_ReturnsSingleSegment()

    GetInmediateChildren_ReturnsOnlyDirectChildren()

    Declaration
    public void GetInmediateChildren_ReturnsOnlyDirectChildren()

    HasParentLayoutGroup_NoLayoutGroupAncestor_ReturnsFalse()

    Declaration
    public void HasParentLayoutGroup_NoLayoutGroupAncestor_ReturnsFalse()

    HasParentLayoutGroup_WithVerticalLayoutGroupParent_ReturnsTrue()

    Declaration
    public void HasParentLayoutGroup_WithVerticalLayoutGroupParent_ReturnsTrue()

    TearDown()

    Declaration
    public void TearDown()
    In this article
    © 2026 Serenity. All Rights Reserved