Entity | Entities | 0.4.0-preview.10
docs.unity3d.com
    Show / Hide Table of Contents

    Entity

    Entity is an ID. You can think of it as a super lightweight GameObject that does not even have a name by default.

    You can add and remove components from entities at runtime. entity ID's are stable. They are the only stable way to store a reference to another component or entity.

    You can add and remove components from entities at runtime in much the same way as a GameObject. Entities can be created from Prefabs by using ComponentDataProxy. The EntityManager will parse the Prefab for ComponentData and add it when it creates the entity.

    Iterating entities

    Iterating over all entities that have a matching set of components, is at the center of the ECS architecture.

    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