Class GetComponentInChildrenAttribute
GetComponentAttributeSetter.DoUpdate_GetComponentAttribute(MonoBehaviour)함수 호출을 통해
으로 변수/프로퍼티를 할당합니다.
성능을 우선한다면 GetComponentInChildrenAttribute.bInclude_DisableObject값을 false로 하세요.
Inheritance
GetComponentInChildrenAttribute
Assembly: KorStrix.GetComponentAttribute.Runtime.dll
Syntax
public class GetComponentInChildrenAttribute : GetComponentAttributeBase, IGetComponentChildrenAttribute, IGetComponentAttribute
Examples
다음은 사용 예시입니다.
[GetComponentInChildren()]
public Rigidbody _rigidbody = null;
// Find ObjectName Component Example
enum SomeEnum { First, Second }
[GetComponentInChildren(SomeEnum.First)]
public Rigidbody _rigidbody = null;
[GetComponentInChildren("Second")]
public Rigidbody _rigidbody { get; private set; }
// List Example
[GetComponentInChildren]
public List(Rigidbody) _rigidbodies = null; // = { Rigidbody(First) }, { Rigidbody(Second) }
// Dictionary Example
[GetComponentInChildren]
public Dictionary(SomeEnum, Rigidbody) _rigidbodies {get; private set;} // = { First, Rigidbody } , { Second, Rigidbody }
Constructors
|
Improve this Doc
View Source
GetComponentInChildrenAttribute(Boolean)
을 호출하여 자식 컴포넌트를 찾아 할당합니다.
Declaration
public GetComponentInChildrenAttribute(bool bInclude_DisableObject = true)
Parameters
Type |
Name |
Description |
Boolean |
bInclude_DisableObject |
Disable 된 오브젝트까지 포함할 지
|
|
Improve this Doc
View Source
GetComponentInChildrenAttribute(Boolean, Boolean)
을 호출하여 자식 컴포넌트를 찾아 할당합니다.
Declaration
public GetComponentInChildrenAttribute(bool bInclude_DisableObject, bool bIsPrint_OnNotFound = true)
Parameters
Type |
Name |
Description |
Boolean |
bInclude_DisableObject |
Disable 된 오브젝트까지 포함할 지
|
Boolean |
bIsPrint_OnNotFound |
오브젝트를 못찾았을 경우 를 출력할 지
|
|
Improve this Doc
View Source
GetComponentInChildrenAttribute(Object)
을 호출하여 자식 컴포넌트를 찾아 할당합니다.
Declaration
public GetComponentInChildrenAttribute(object pFindComponentName)
Parameters
Type |
Name |
Description |
Object |
pFindComponentName |
여기엔 String혹은 Enum 타입만 들어가야 합니다. 찾고자 하는 컴포넌트 이름입니다.
|
|
Improve this Doc
View Source
GetComponentInChildrenAttribute(Object, Boolean)
을 호출하여 자식 컴포넌트를 찾아 할당합니다.
Declaration
public GetComponentInChildrenAttribute(object pFindComponentName, bool bInclude_DisableObject)
Parameters
Type |
Name |
Description |
Object |
pFindComponentName |
여기엔 String혹은 Enum 타입만 들어가야 합니다. 찾고자 하는 컴포넌트 이름입니다.
|
Boolean |
bInclude_DisableObject |
Disable 된 오브젝트까지 포함할 지
|
|
Improve this Doc
View Source
GetComponentInChildrenAttribute(Object, Boolean, Boolean)
을 호출하여 자식 컴포넌트를 찾아 할당합니다.
Declaration
public GetComponentInChildrenAttribute(object pFindComponentName, bool bInclude_DisableObject, bool bIsPrint_OnNotFound = true)
Parameters
Type |
Name |
Description |
Object |
pFindComponentName |
여기엔 String혹은 Enum 타입만 들어가야 합니다. 찾고자 하는 컴포넌트 이름입니다.
|
Boolean |
bInclude_DisableObject |
Disable 된 오브젝트까지 포함할 지
|
Boolean |
bIsPrint_OnNotFound |
오브젝트를 못찾았을 경우 를 출력할 지
|
Fields
|
Improve this Doc
View Source
bInclude_DisableObject
Declaration
public bool bInclude_DisableObject
Field Value
|
Improve this Doc
View Source
bSearch_By_ComponentName
Declaration
public bool bSearch_By_ComponentName
Field Value
|
Improve this Doc
View Source
strComponentName
Declaration
public string strComponentName
Field Value
Properties
|
Improve this Doc
View Source
bSearch_By_ComponentName_ForGetComponent
Declaration
public bool bSearch_By_ComponentName_ForGetComponent { get; }
Property Value
|
Improve this Doc
View Source
strComponentName_ForGetComponent
Declaration
public string strComponentName_ForGetComponent { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetComponent(MonoBehaviour, Type)
Declaration
public override object GetComponent(MonoBehaviour pMono, Type pElementType)
Parameters
Type |
Name |
Description |
MonoBehaviour |
pMono |
|
Type |
pElementType |
|
Returns
Overrides
Implements