Show / Hide Table of Contents

    Class Component_Extension

    혹여나 플러그인 밖에서 GetComponentAttribute 관련 (예시로 이름으로 찾기 등) 기능이 필요할 경우

    편히 쓰게 하기 위한 용 확장 class

    Inheritance
    Object
    Component_Extension
    Namespace: Global
    Assembly: KorStrix.GetComponentAttribute.Runtime.dll
    Syntax
    public static class Component_Extension

    Methods

    | Improve this Doc View Source

    ExtractSameNameArray(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입니다.

    | Improve this Doc View Source

    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

    자식 오브젝트 중 이름과 타입이 같은 컴포넌트

    | Improve this Doc View Source

    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[]

    자식 오브젝트 중 이름과 타입이 같은 컴포넌트들

    • Improve this Doc
    • View Source
    • 0 Comments
    Back to top Example Footer