docs.unity.cn
    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
    Syntax
    public interface IJobEntityChunkBeginEnd

    Methods

    Name Description
    OnChunkBegin(in ArchetypeChunk, Int32, Boolean, 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, Int32, Boolean, in v128, Boolean)

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

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