docs.unity.cn
    Show / Hide Table of Contents

    Method WithDeferredPlaybackSystem

    WithDeferredPlaybackSystem<T>(ForEachLambdaJobDescription)

    Specify an EntityCommandBufferSystem to play back entity commands.

    Declaration
    public static ForEachLambdaJobDescription WithDeferredPlaybackSystem<T>(this ForEachLambdaJobDescription description)
        where T : EntityCommandBufferSystem
    Parameters
    Type Name Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescription description

    The target object

    Returns
    Type Description
    Unity.Entities.CodeGeneratedJobForEach.ForEachLambdaJobDescription

    The target object, suitable for chaining multiple methods

    Type Parameters
    Name Description
    T

    Type of EntityCommandBufferSystem

    Remarks

    To use this, you must pass an EntityCommands parameter as part of the ForEach() lambda expression. You can use this together with .Run(), .Schedule(), or .ScheduleParallel().

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