Documentation

Unity Engine

Unity Engine

RegisterComponentLifecycleCallback(Type, ComponentLifecycleDelegate, ComponentLifecycleDelegate, bool, bool, bool, bool)

Used by ILPP-generated code to register component lifecycle callbacks. Called from generated EarlyInit() methods.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
[ExcludeFromBurstCompatTesting("Uses managed delegates")]public static void RegisterComponentLifecycleCallback(Type componentType, TypeManager.ComponentLifecycleDelegate onAddedFn, TypeManager.ComponentLifecycleDelegate onRemovedFn, bool hasOnAdded, bool hasOnRemoved, bool onAddedIsBurst, bool onRemovedIsBurst)

Parameters

componentType

Component Type

OnAdded delegate (or null)

OnRemoved delegate (or null)

hasOnAdded

Whether OnAdded callback exists

hasOnRemoved

Whether OnRemoved callback exists

onAddedIsBurst

Whether OnAdded is Burst-compiled

onRemovedIsBurst

Whether OnRemoved is Burst-compiled