文档

Unity Engine

Unity Engine

forceSingleInstance

Restrict standalone players to a single concurrent running instance.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool forceSingleInstance { get; set; }

Remarks

This detects at startup whether another instance of the same player is already running, and aborts with an error message if so.