docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IComponentList<TObject>

    Interface for object containing a component list. This is used to store component data on an object.

    Namespace: UnityEditor.MARS
    Assembly: Unity.MARS.Editor.dll
    Syntax
    public interface IComponentList<TObject> where TObject : Object
    Type Parameters
    Name Description
    TObject

    Type of component collection is to store

    Properties

    components

    List of components this interface provides.

    Declaration
    List<TObject> components { get; }
    Property Value
    Type Description
    List<TObject>

    isDirty

    If the components list has been modified in a way that the list and objects that use the list need to be validated.

    Declaration
    bool isDirty { get; set; }
    Property Value
    Type Description
    bool

    self

    Reference back to the object that implements the interface.

    Declaration
    Object self { get; }
    Property Value
    Type Description
    Object

    Methods

    HasComponents(Type)

    Does the Settings contain a item of type.

    Declaration
    bool HasComponents(Type type)
    Parameters
    Type Name Description
    Type type

    Type of item to check if the components has.

    Returns
    Type Description
    bool

    True if components contains an item of type.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)