docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ECBExtensionMethods

    Extension methods for EntityCommandBufferSystem.

    Inheritance
    object
    ECBExtensionMethods
    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    public static class ECBExtensionMethods

    Methods

    Name Description
    RegisterSingleton<T>(EntityCommandBufferSystem, ref UnsafeList<EntityCommandBuffer>, WorldUnmanaged)

    Every unmanaged Singleton that implements IECBSingleton must be registered by this function, at the end of its owner's EntityCommandBufferSystem.OnCreate method, in order to prepare the Singleton with the unmanaged data necessary for it to work from unmanaged code, without holding a managed reference to the EntityCommandBufferSystem. This Singleton component will be added to the system entity for this EntityCommandBufferSystem derived type.

    RegisterSingleton<T>(EntityCommandBufferSystem, ref UnsafeList<EntityCommandBuffer>, WorldUnmanaged, string)

    Obsolete. System entities are used for ECB component data, rather than entityName.

    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)