LifecycleMethodRegistration
Infrastructure class used by generated code to register lifecycle callback methods. Not intended for direct use.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Class
- Namespace: Unity.Scripting.LifecycleManagement.CodeGen
- Assembly: Unity.Scripting
public static class LifecycleMethodRegistration
Remarks
This class is part of the code generation infrastructure for lifecycle attributes such as OnCodeLoadedAttribute and OnCodeInitializingAttribute. The Roslyn source generator emits calls to LifecycleMethodRegistration.Register in generated subclasses; do not call it directly.
Additional Resources: OnCodeLoadedAttribute, OnCodeInitializingAttribute, OnCodeDeinitializingAttribute, OnCodeUnloadingAttribute.
Static Methods
Method | Description |
|---|---|
| Register | Registers a lifecycle callback with the lifecycle controller. Called by generated code only. |