Class Component_Extension
혹여나 플러그인 밖에서 GetComponentAttribute 관련 (예시로 이름으로
편히 쓰게 하기 위한
Namespace: Global
Assembly: KorStrix.GetComponentAttribute.Runtime.dll
Syntax
public static class Component_Extension
Methods
| Improve this Doc View SourceExtractSameNameArray(String, Component[])
같은 이름의 컴포넌트를 찾아 리턴합니다.
Declaration
public static Component[] ExtractSameNameArray(string strObjectName, Component[] arrComponentFind)
Parameters
Type | Name | Description |
---|---|---|
String | strObjectName | 찾고자 하는 이름 |
Component[] | arrComponentFind | 찾아야 할 컬렉션 |
Returns
Type | Description |
---|---|
Component[] | 찾은 컴포넌트 Array // 없으면 Length는 0입니다. |
GetComponentInChildren_SameName(Component, String, Type, Boolean)
Declaration
public static Component GetComponentInChildren_SameName(this Component pTarget, string strObjectName, Type pComponentType, bool bInclude_DisableObject)
Parameters
Type | Name | Description |
---|---|---|
Component | pTarget | GetComponent의 기준이 되는 Target |
String | strObjectName | 찾고자 하는 이름 |
Type | pComponentType | 찾고자 하는 타입 |
Boolean | bInclude_DisableObject | Disable된 오브젝트를 포함할 지 |
Returns
Type | Description |
---|---|
Component | 자식 오브젝트 중 이름과 타입이 같은 컴포넌트 |
GetComponentsInChildrenArray_SameName(Component, String, Type, Boolean)
Declaration
public static Component[] GetComponentsInChildrenArray_SameName(this Component pTarget, string strObjectName, Type pComponentType, bool bInclude_DisableObject)
Parameters
Type | Name | Description |
---|---|---|
Component | pTarget | GetComponent의 기준이 되는 Target |
String | strObjectName | 찾고자 하는 이름 |
Type | pComponentType | 찾고자 하는 타입 |
Boolean | bInclude_DisableObject | Disable된 오브젝트를 포함할 지 |
Returns
Type | Description |
---|---|
Component[] | 자식 오브젝트 중 이름과 타입이 같은 컴포넌트들 |