Search Results for

    Show / Hide Table of Contents

    Class WorkaroundUnityMissingGetComponentChild

    Unity used the word "child" to mean something it does not (and never has meant).

    Here we workaround that by defining "DirectChild" with the standard definition of "Child" and allow Unity to keep using their broken definition for "Child".

    Inheritance
    Object
    WorkaroundUnityMissingGetComponentChild
    Namespace: NinjaTools.FlexBuilder
    Assembly: cs.temp.dll.dll
    Syntax
    public static class WorkaroundUnityMissingGetComponentChild

    Methods

    - (List<T>) GetComponentsOnDirectChildren(Component, Boolean, Boolean)

    Returns the Components on the Component's GameObject's children; Unity has no API call for doing this.

    Parameters
    Component c
    Boolean allowInactive

    defaults to true; if true returns inactive gameobjects, if false skips them

    Boolean allowInactiveIfActiveSelf
    Returns
    List<T>
    Type Parameters
    T

    Type of Component/MonoBehaviour to find

    - (List<T>) GetComponentsOnDirectChildren(Transform, Boolean, Boolean)

    Returns the Components on the Transform's children; Unity has no API call for doing this.

    Parameters
    Transform t
    Boolean allowInactive

    defaults to true; if true returns inactive gameobjects, if false skips them

    Boolean allowInactiveIfActiveSelf
    Returns
    List<T>
    Type Parameters
    T

    Type of Component/MonoBehaviour to find

    In This Article
    Back to top http://flexbuilder.ninja