docs.unity.cn
    Show / Hide Table of Contents

    Method DestroyEntity

    DestroyEntity(Entity)

    Declaration
    public void DestroyEntity(Entity e)
    Parameters
    Type Name Description
    Entity e

    DestroyEntity(EntityQuery)

    Records a command to destroy all entities matching a query.

    Declaration
    public void DestroyEntity(EntityQuery entityQuery)
    Parameters
    Type Name Description
    EntityQuery entityQuery

    The query specifying which entities from which the component is removed.

    Remarks

    The query is performed at playback time, not when the method is called.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 28, 2021