docs.unity3d.com
    目次を表示する/隠す

    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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)