Documentation

Unity Engine


Unity Engine


ECBExtensionMethods

Extension methods for EntityCommandBufferSystem.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Class
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static class ECBExtensionMethods

Static Methods

Method

Description

RegisterSingletonEvery 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.