docs.unity3d.com
    Show / Hide Table of Contents

    Class ComponentHolderProtocol

    Inheritance
    Object
    ComponentHolderProtocol
    Namespace: Unity.VisualScripting
    Syntax
    public static class ComponentHolderProtocol

    Methods

    AddComponent<T>(Object)

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

    GameObject(Object)

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

    GetComponent(Object, Type)

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

    GetComponent<T>(Object)

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

    GetComponentInChildren(Object, Type)

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

    GetComponentInChildren<T>(Object)

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

    GetComponentInParent(Object, Type)

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

    GetComponentInParent<T>(Object)

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

    GetComponents(Object, Type)

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

    GetComponents<T>(Object)

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

    GetComponentsInChildren(Object, Type)

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

    GetComponentsInChildren<T>(Object)

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

    GetComponentsInParent(Object, Type)

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

    GetComponentsInParent<T>(Object)

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

    GetOrAddComponent<T>(Object)

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

    IsComponentHolder(Object)

    Declaration
    public static bool IsComponentHolder(this Object uo)
    Parameters
    Type Name Description
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023