Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

AsyncOperation.allowSceneActivation

var allowSceneActivation: bool;
bool allowSceneActivation;
allowSceneActivation as bool

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).