ドキュメント

Unity Engine

Download Unity

Unity Engine

DelegateAutoCleanup

Class used by the source generator to reset static variables when entering or exiting Play mode with code reload disabled. Don't attempt to use this class directly.
読み終わるまでの所要時間 1 分最終更新 12日前

Definition

public sealed class DelegateAutoCleanup : ClassAutoCleanup

Constructors

Constructor

Description

DelegateAutoCleanup(System.Action,System.Type,System.String)Constructor used by the source generator. Don't attempt to use this directly.

Methods

Method

Description

CleanupResets the static state of the class that the code generator produced this cleanup for. Unity calls this method; don't call it directly.

Static Methods

Method

Description

CreateForCodeLoadMethod used by code generators to create a cleanup entry that runs when scripts are reloaded. Don't attempt to use this directly.
CreateForPlayModeMethod used by the source generator to create a cleanup entry registered against the Play mode scope. Don't attempt to use this directly.