docs.unity3d.com
    显示 / 隐藏目录

    Class MonoBehaviourComponentList

    Component List that can store the MonoBehaviours of an object.

    Inheritance
    Object
    Object
    ScriptableObject
    MonoBehaviourComponentList
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.MARS
    Syntax
    [Serializable]
    public class MonoBehaviourComponentList : ScriptableObject, IComponentList<MonoBehaviour>

    Properties

    components

    Declaration
    public List<MonoBehaviour> components { get; }
    Property Value
    Type Description
    List<MonoBehaviour>
    Implements
    IComponentList<TObject>.components

    isDirty

    Declaration
    public bool isDirty { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IComponentList<TObject>.isDirty

    self

    Declaration
    public Object self { get; }
    Property Value
    Type Description
    Object
    Implements
    IComponentList<TObject>.self

    Methods

    HasComponents(Type)

    Declaration
    public bool HasComponents(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean
    Implements
    IComponentList<TObject>.HasComponents(Type)

    ResetComponentsList<TComponentMenuAttribute>(GameObject)

    Rebuilds the list of attached MonoBehaviours.

    Declaration
    public void ResetComponentsList<TComponentMenuAttribute>(GameObject go)
        where TComponentMenuAttribute : ComponentMenuAttribute
    Parameters
    Type Name Description
    GameObject go

    The GameObject the MonoBehaviours are attached too.

    Type Parameters
    Name Description
    TComponentMenuAttribute
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)