Method | Description | |
---|---|---|
GetAncestors ( this gameObject ) : IEnumerable |
Selects all ancestors (parent, grandparent, etc.) of a game object.
|
|
GetAncestorsAndSelf ( this gameObject ) : IEnumerable |
Selects all ancestors (parent, grandparent, etc.) of a game object, and the game object itself.
|
|
GetChildren ( this gameObject ) : IEnumerable |
Selects all children of a game object.
|
|
GetDescendants ( this gameObject ) : IEnumerable |
Selects all descendants (children, grandchildren, etc.) of a game object.
|
|
GetDescendantsAndSelf ( this gameObject ) : IEnumerable |
Selects all descendants (children, grandchildren, etc.) of a game object, and the game object itself.
|
|
GetRoot ( this gameObject ) : |
Gets the hierarchy root of the game object.
|
|
IsAncestorOf ( this gameObject, |
Indicates whether the a game object is an ancestor of another one.
|
|
IsDescendantOf ( this gameObject, |
Indicates whether the a game object is a descendant of another one.
|
|
OnLayer ( this |
Filters a sequence of game objects by layer.
|
|
OnLayer ( this |
Filters a sequence of game objects by layer.
|
|
WithTag ( this |
Filters a sequence of game objects by tag.
|
public static GetAncestors ( this gameObject ) : IEnumerable |
||
gameObject | this | Game object to select the ancestors of. |
return | IEnumerable |
public static GetAncestorsAndSelf ( this gameObject ) : IEnumerable |
||
gameObject | this | Game object to select the ancestors of. |
return | IEnumerable |
public static GetChildren ( this gameObject ) : IEnumerable |
||
gameObject | this | Game object to select the children of. |
return | IEnumerable |
public static GetDescendants ( this gameObject ) : IEnumerable |
||
gameObject | this | Game object to select the descendants of. |
return | IEnumerable |
public static GetDescendantsAndSelf ( this gameObject ) : IEnumerable |
||
gameObject | this | Game object to select the descendants of. |
return | IEnumerable |
public static GetRoot ( this gameObject ) : |
||
gameObject | this | Game object to get the root of. |
return |
public static IsAncestorOf ( this gameObject, |
||
gameObject | this | Possible ancestor. |
descendant | Possible descendant. | |
return | bool |
public static IsDescendantOf ( this gameObject, |
||
gameObject | this | Possible descendant. |
ancestor | Possible ancestor. | |
return | bool |
public static OnLayer ( this |
||
gameObjects | this |
Game objects to filter. |
layer | int | Layer to get the game objects of. |
return | IEnumerable |
public static OnLayer ( this |
||
gameObjects | this |
Game objects to filter. |
layerName | string | Layer to get the game objects of. |
return | IEnumerable |
public static WithTag ( this |
||
gameObjects | this |
Game objects to filter. |
tag | string | Tag to get the game objects of. |
return | IEnumerable |