docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IJobEntityChunkBeginEnd

    When added to an implemented IJobEntity the two functions will be called at the beginning and end of each chunk iteration.

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public interface IJobEntityChunkBeginEnd

    Methods

    Name Description
    OnChunkBegin(in ArchetypeChunk, int, bool, in v128)

    Called at the beginning of every chunk iteration in the IJobEntity. It also tells whether or not to run Execute on the current IJobEntity.

    OnChunkEnd(in ArchetypeChunk, int, bool, in v128, bool)

    Called at the end of every chunk iteration in the IJobEntity. Will still be called even if OnChunkBegin(in ArchetypeChunk, int, bool, in v128) returned false. You can handle this case by checking chunkWasExecuted.

    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)