Class ComponentHolderProtocol | Bolt Visual Scripting | 1.4.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class ComponentHolderProtocol

    Inheritance
    Object
    ComponentHolderProtocol
    Namespace: Ludiq
    Syntax
    public static class ComponentHolderProtocol

    Methods

    AddComponent(UnityEngine.Object, Type)

    Declaration
    public static Component AddComponent(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component

    AddComponent<T>(UnityEngine.Object)

    Declaration
    public static T AddComponent<T>(this UnityEngine.Object uo)
        where T : Component
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    AsGameObject(UnityEngine.Object)

    Declaration
    public static GameObject AsGameObject(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    GameObject

    GameObject(UnityEngine.Object)

    Declaration
    public static GameObject GameObject(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    GameObject

    GetComponent(UnityEngine.Object, Type)

    Declaration
    public static Component GetComponent(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component

    GetComponent<T>(UnityEngine.Object)

    Declaration
    public static T GetComponent<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetComponentInChildren(UnityEngine.Object, Type)

    Declaration
    public static Component GetComponentInChildren(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component

    GetComponentInChildren(UnityEngine.Object, Type, Boolean)

    Declaration
    public static Component GetComponentInChildren(this UnityEngine.Object uo, Type type, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Boolean includeInactive
    Returns
    Type Description
    Component

    GetComponentInChildren<T>(UnityEngine.Object)

    Declaration
    public static T GetComponentInChildren<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetComponentInChildren<T>(UnityEngine.Object, Boolean)

    Declaration
    public static T GetComponentInChildren<T>(this UnityEngine.Object uo, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Boolean includeInactive
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetComponentInParent(UnityEngine.Object, Type)

    Declaration
    public static Component GetComponentInParent(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component

    GetComponentInParent<T>(UnityEngine.Object)

    Declaration
    public static T GetComponentInParent<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetComponents(UnityEngine.Object, Type)

    Declaration
    public static Component[] GetComponents(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component[]

    GetComponents(UnityEngine.Object, Type, List<Component>)

    Declaration
    public static void GetComponents(this UnityEngine.Object uo, Type type, List<Component> results)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    List<Component> results

    GetComponents<T>(UnityEngine.Object)

    Declaration
    public static T[] GetComponents<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    GetComponents<T>(UnityEngine.Object, List<T>)

    Declaration
    public static void GetComponents<T>(this UnityEngine.Object uo, List<T> results)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    List<T> results
    Type Parameters
    Name Description
    T

    GetComponentsInChildren(UnityEngine.Object, Type)

    Declaration
    public static Component[] GetComponentsInChildren(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component[]

    GetComponentsInChildren(UnityEngine.Object, Type, Boolean)

    Declaration
    public static Component[] GetComponentsInChildren(this UnityEngine.Object uo, Type type, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Boolean includeInactive
    Returns
    Type Description
    Component[]

    GetComponentsInChildren<T>(UnityEngine.Object)

    Declaration
    public static T[] GetComponentsInChildren<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    GetComponentsInChildren<T>(UnityEngine.Object, Boolean)

    Declaration
    public static T[] GetComponentsInChildren<T>(this UnityEngine.Object uo, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Boolean includeInactive
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    GetComponentsInChildren<T>(UnityEngine.Object, Boolean, List<T>)

    Declaration
    public static void GetComponentsInChildren<T>(this UnityEngine.Object uo, bool includeInactive, List<T> results)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Boolean includeInactive
    List<T> results
    Type Parameters
    Name Description
    T

    GetComponentsInChildren<T>(UnityEngine.Object, List<T>)

    Declaration
    public static void GetComponentsInChildren<T>(this UnityEngine.Object uo, List<T> results)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    List<T> results
    Type Parameters
    Name Description
    T

    GetComponentsInParent(UnityEngine.Object, Type)

    Declaration
    public static Component[] GetComponentsInParent(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component[]

    GetComponentsInParent(UnityEngine.Object, Type, Boolean)

    Declaration
    public static Component[] GetComponentsInParent(this UnityEngine.Object uo, Type type, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Boolean includeInactive
    Returns
    Type Description
    Component[]

    GetComponentsInParent<T>(UnityEngine.Object)

    Declaration
    public static T[] GetComponentsInParent<T>(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    GetComponentsInParent<T>(UnityEngine.Object, Boolean)

    Declaration
    public static T[] GetComponentsInParent<T>(this UnityEngine.Object uo, bool includeInactive)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Boolean includeInactive
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    GetComponentsInParent<T>(UnityEngine.Object, Boolean, List<T>)

    Declaration
    public static void GetComponentsInParent<T>(this UnityEngine.Object uo, bool includeInactive, List<T> results)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Boolean includeInactive
    List<T> results
    Type Parameters
    Name Description
    T

    GetOrAddComponent(UnityEngine.Object, Type)

    Declaration
    public static Component GetOrAddComponent(this UnityEngine.Object uo, Type type)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Type type
    Returns
    Type Description
    Component

    GetOrAddComponent<T>(UnityEngine.Object)

    Declaration
    public static T GetOrAddComponent<T>(this UnityEngine.Object uo)
        where T : Component
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    IsComponentHolder(UnityEngine.Object)

    Declaration
    public static bool IsComponentHolder(this UnityEngine.Object uo)
    Parameters
    Type Name Description
    UnityEngine.Object uo
    Returns
    Type Description
    Boolean

    IsComponentHolderType(Type)

    Declaration
    public static bool IsComponentHolderType(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX