docs.unity.cn
    Show / Hide Table of Contents

    Method HasComponent

    HasComponent(Entity)

    Obsolete. Use HasBuffer(Entity) instead.

    Declaration
    [Obsolete("This method has been renamed to HasBuffer(). (RemovedAfter Entities 1.0)", false)]
    public bool HasComponent(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    Returns
    Type Description
    Boolean

    True if the entity has a buffer component of type T, and false if it does not. Also returns false if the Entity instance refers to an entity that has been destroyed.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023