Version: 2017.2

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.