playMaker

Author Topic: Scene is valid (and other scene related actions) not giving any result  (Read 1959 times)

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 773
The current action GetScneIsValid.cs uses the following code:

Code: [Select]
_scene.IsValid();
But it's not working when verifying unloaded scenes that are nevertheless included in the build. This function only checks for loaded scenes.

The thread here provides solutions to circumvent this.

The class SceneUtility should be used for this to either get the path or the index. In the case of the index, a returned value of -1 means the scene isn't in the build.

In fact pretty much all actions rely on the [scene_var].function from the scene structure script.