docs.unity.cn
    Show / Hide Table of Contents

    Components overview

    Components represent the data in the Entity Component System (ECS) architecture. Entities associate components together and systems provide logic that can read from and write to the component data. This section introduces ECS components and explains how to use them.

    Topic Description
    Component types Understand different component types and how to use them.
    Add components to an entity Use C# scripts to add components to an entity.
    Remove components from an entity Use C# scripts to remove components from an entity.
    Read and write component values Use C# scripts to read or write component values.
    Native container component support Understand the behavior and support for NativeContainers in component types.

    Additional resources

    • ECS concepts
    • Entities concepts
    • Systems concepts
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023