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

    Interface IComponentList<TObject>

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

    Namespace: Unity.MARS
    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
    Boolean

    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
    Boolean

    True if components contains an item of type.

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