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
Component Type
OnAdded delegate (or null)
OnRemoved delegate (or null)
Whether OnAdded callback exists
Whether OnRemoved callback exists
Whether OnAdded is Burst-compiled
Whether OnRemoved is Burst-compiled