Documentation

Unity Engine


User Manual

Script Reference

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 13 days 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