All Classes Namespaces Functions Variables Enumerations Properties Pages
Static Public Member Functions | List of all members
Hierarchy Class Reference

Contains tools for working on Transform hierarchies. More...

Static Public Member Functions

static bool HierarchyIsValid (Transform[] bones)
 Make sure the bones are in valid Hierarchy More...
 
static UnityEngine.Object ContainsDuplicate (UnityEngine.Object[] objects)
 Checks if an array of objects contains any duplicates. More...
 
static bool IsAncestor (Transform transform, Transform ancestor)
 Determines whether the second Transform is an ancestor to the first Transform. More...
 
static bool ContainsChild (Transform transform, Transform child)
 Returns true if the transforms contains the child More...
 
static void AddAncestors (Transform transform, Transform blocker, ref Transform[] array)
 Adds all Transforms until the blocker to the array More...
 
static Transform GetAncestor (Transform transform, int minChildCount)
 Gets the last ancestor that has more than minChildCount number of child Transforms More...
 
static Transform GetFirstCommonAncestor (Transform t1, Transform t2)
 Gets the first common ancestor up the hierarchy More...
 
static Transform GetFirstCommonAncestor (Transform[] transforms)
 Gets the first common ancestor of the specified transforms. More...
 
static Transform GetFirstCommonAncestorRecursive (Transform transform, Transform[] transforms)
 Gets the first common ancestor recursively. More...
 
static bool IsCommonAncestor (Transform transform, Transform[] transforms)
 Determines whether the first parameter is the common ancestor of all the other specified transforms. More...
 

Detailed Description

Contains tools for working on Transform hierarchies.