RegisterComponentLifecycleCallback(Type, ComponentLifecycleDelegate, ComponentLifecycleDelegate, bool, bool, bool, bool)
Used by ILPP-generated code to register component lifecycle callbacks. Called from generated EarlyInit() methods.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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