docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BeginPresentationEntityCommandBufferSystem.Singleton

    Call GetSingleton<T>() to get this component for this system, and then call CreateCommandBuffer(WorldUnmanaged) on this singleton to create an ECB to be played back by this system.

    Implements
    IComponentData
    IQueryTypeParameter
    IECBSingleton
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public struct BeginPresentationEntityCommandBufferSystem.Singleton : IComponentData, IQueryTypeParameter, IECBSingleton
    Remarks

    Useful if you want to record entity commands now, but play them back at a later point in the frame, or early in the next frame.

    Methods

    Name Description
    CreateCommandBuffer(WorldUnmanaged)

    Create a command buffer for the parent system to play back.

    SetAllocator(Allocator)

    Set the allocator that command buffers created with this singleton should be allocated with.

    SetAllocator(AllocatorHandle)

    Set the allocator that command buffers created with this singleton should be allocated with.

    SetPendingBufferList(ref UnsafeList<EntityCommandBuffer>)

    Sets the list of command buffers to play back when this system updates.

    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)