Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

AsyncOperation.allowSceneActivation

Switch to Manual
public bool allowSceneActivation;

Description

Allow scenes to be activated as soon as it is ready.

When used in combination with LoadLevelAsync & LoadLevelAsyncAdditive it allows you to delay the actual activation of the scene. (And unloading of the previous scene).