Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.forceSingleInstance

Switch to Manual
public static bool forceSingleInstance;

Description

Restrict standalone players to a single concurrent running instance.

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

Did you find this page useful? Please give it a rating: