CreateForCodeLoad(Action, string)
Method used by code generators to create a cleanup entry that runs when scripts are reloaded. Don't attempt to use this directly.
阅读时间1 分钟最后更新于 6 天前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: Unity.Scripting
public static DelegateAutoCleanup CreateForCodeLoad(Action cleanup, string ownerDescription = "")
Parameters
Returns
Type | Description |
|---|---|
| DelegateAutoCleanup |