C# 클래스 UnityQuery.Hierarchy

파일 보기 프로젝트 열기: npruehs/unity-query

공개 메소드들

메소드 설명
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 ) : GameObject

Gets the hierarchy root of the game object.

IsAncestorOf ( this gameObject, GameObject descendant ) : bool

Indicates whether the a game object is an ancestor of another one.

IsDescendantOf ( this gameObject, GameObject ancestor ) : bool

Indicates whether the a game object is a descendant of another one.

OnLayer ( this gameObjects, int layer ) : IEnumerable

Filters a sequence of game objects by layer.

OnLayer ( this gameObjects, string layerName ) : IEnumerable

Filters a sequence of game objects by layer.

WithTag ( this gameObjects, string tag ) : IEnumerable

Filters a sequence of game objects by tag.

메소드 상세

GetAncestors() 공개 정적인 메소드

Selects all ancestors (parent, grandparent, etc.) of a game object.
public static GetAncestors ( this gameObject ) : IEnumerable
gameObject this Game object to select the ancestors of.
리턴 IEnumerable

GetAncestorsAndSelf() 공개 정적인 메소드

Selects all ancestors (parent, grandparent, etc.) of a game object, and the game object itself.
public static GetAncestorsAndSelf ( this gameObject ) : IEnumerable
gameObject this Game object to select the ancestors of.
리턴 IEnumerable

GetChildren() 공개 정적인 메소드

Selects all children of a game object.
public static GetChildren ( this gameObject ) : IEnumerable
gameObject this Game object to select the children of.
리턴 IEnumerable

GetDescendants() 공개 정적인 메소드

Selects all descendants (children, grandchildren, etc.) of a game object.
public static GetDescendants ( this gameObject ) : IEnumerable
gameObject this Game object to select the descendants of.
리턴 IEnumerable

GetDescendantsAndSelf() 공개 정적인 메소드

Selects all descendants (children, grandchildren, etc.) of a game object, and the game object itself.
public static GetDescendantsAndSelf ( this gameObject ) : IEnumerable
gameObject this Game object to select the descendants of.
리턴 IEnumerable

GetRoot() 공개 정적인 메소드

Gets the hierarchy root of the game object.
public static GetRoot ( this gameObject ) : GameObject
gameObject this Game object to get the root of.
리턴 UnityEngine.GameObject

IsAncestorOf() 공개 정적인 메소드

Indicates whether the a game object is an ancestor of another one.
public static IsAncestorOf ( this gameObject, GameObject descendant ) : bool
gameObject this Possible ancestor.
descendant UnityEngine.GameObject Possible descendant.
리턴 bool

IsDescendantOf() 공개 정적인 메소드

Indicates whether the a game object is a descendant of another one.
public static IsDescendantOf ( this gameObject, GameObject ancestor ) : bool
gameObject this Possible descendant.
ancestor UnityEngine.GameObject Possible ancestor.
리턴 bool

OnLayer() 공개 정적인 메소드

Filters a sequence of game objects by layer.
public static OnLayer ( this gameObjects, int layer ) : IEnumerable
gameObjects this Game objects to filter.
layer int Layer to get the game objects of.
리턴 IEnumerable

OnLayer() 공개 정적인 메소드

Filters a sequence of game objects by layer.
public static OnLayer ( this gameObjects, string layerName ) : IEnumerable
gameObjects this Game objects to filter.
layerName string Layer to get the game objects of.
리턴 IEnumerable

WithTag() 공개 정적인 메소드

Filters a sequence of game objects by tag.
public static WithTag ( this gameObjects, string tag ) : IEnumerable
gameObjects this Game objects to filter.
tag string Tag to get the game objects of.
리턴 IEnumerable