Class ECBExtensionMethods
Extension methods for EntityCommandBufferSystem.
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. |