Documentation

Unity Engine

Unity Engine

PlayModeScopeAutoCleanup

Obsolete. Use DelegateAutoCleanup.CreateForPlayMode instead. Previously used by the source generator to reset static variables when entering or exiting Play mode with domain reload disabled.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. PlayModeScopeAutoCleanup is no longer emitted by the source generator. Use DelegateAutoCleanup.CreateForPlayMode(...) instead.
public abstract class PlayModeScopeAutoCleanup : ClassAutoCleanup