docs.unity3d.com
    Show / Hide Table of Contents

    Component Systems

    A ComponentSystem in Unity (also known as a system in standard ECS terms) performs operations on entities. A ComponentSystem cannot contain instance data. To put this in terms of the old Unity system, this is somewhat similar to an old Component class, but one that only contains methods. One ComponentSystem is responsible for updating all entities with a matching set of components (that is defined within a struct called a EntityQuery).

    Unity ECS provides an abstract class called ComponentSystem that you can extend in your code.

    See file: /Packages/com.unity.entities/Unity.Entities/ComponentSystem.cs.

    See also: System update order.

    Back to top
    Terms of use
    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