docs.unity3d.com
    Show / Hide Table of Contents

    Method RemoveComponent

    RemoveComponent<T>(Int32, Entity)

    Declaration
    public void RemoveComponent<T>(int sortKey, Entity e)
    Parameters
    Type Name Description
    Int32 sortKey
    Entity e
    Type Parameters
    Name Description
    T

    RemoveComponent(Int32, Entity, ComponentType)

    Declaration
    public void RemoveComponent(int sortKey, Entity e, ComponentType componentType)
    Parameters
    Type Name Description
    Int32 sortKey
    Entity e
    ComponentType componentType

    RemoveComponent(Int32, Entity, ComponentTypes)

    Records a command to remove one or more components from an entity.

    Declaration
    public void RemoveComponent(int sortKey, Entity e, ComponentTypes types)
    Parameters
    Type Name Description
    Int32 sortKey
    Entity e

    The entity to have the components removed.

    ComponentTypes types

    The types of components to remove.

    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