docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEntityTypeHandle

    GetEntityTypeHandle()

    Manually gets the runtime type information required to access the array of Entity objects in a chunk.

    Declaration
    public EntityTypeHandle GetEntityTypeHandle()
    Returns
    Type Description
    EntityTypeHandle

    An object that represents the type information required to safely access Entity instances stored in a chunk.

    Remarks

    To make sure the entity type handle is up to date, call Update(ref SystemState) before you use this method. It's best practice to use GetEntityTypeHandle() instead of this method because SystemAPI.GetEntityTypeHandle caches in OnCreate for you and calls Update(ref SystemState) at the call-site.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)