Version: 5.5

Scene.buildIndex

Switch to Manual
public int buildIndex ;

Description

Returns the index of the scene in the Build Settings. Always returns -1 if the scene was loaded through an AssetBundle.