RegisterComponentLifecycleCallback(Type, ComponentLifecycleDelegate, ComponentLifecycleDelegate, bool, bool, bool, bool)
Used by ILPP-generated code to register component lifecycle callbacks. Called from generated EarlyInit() methods.
阅读时间1 分钟最后更新于 19 天前
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