Class MonoBehaviourComponentList | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MonoBehaviourComponentList

    Component List that can store the MonoBehaviours of an object.

    Inheritance
    Object
    MonoBehaviourComponentList
    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
    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