文档

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.
阅读时间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

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