BuildIndexMatrix.cs
/// <summary>
/// Try's to give the build index of the scene with the specified scene name
/// </summary>
/// <param name="sceneName"></param>
/// <param name="buildIndex"></param>
/// <returns>true if the index exists, false otherwise</returns>
Try's to give the build index of the scene with the specified scene name
Try ' s to give the build index of the scene with the specified scene name
public static bool TryGetSceneBuildIndex(string sceneName, out int buildIndex)
    {
        buildIndex = -1;
        if (buildIndexMatrix.ContainsKey(sceneName))
        {
            buildIndex = buildIndexMatrix[sceneName];
        }
        return (buildIndex == -1);
    }
public static bool TryGetSceneBuildIndex ( string sceneName , out int buildIndex ) { buildIndex = - 1 ; if ( buildIndexMatrix . ContainsKey ( sceneName ) ) { buildIndex = buildIndexMatrix [ sceneName ] ; } return ( buildIndex == - 1 ) ; }
Try's to give the build index of the scene with the specified scene name
Try ' s to give the build index of the scene with the specified scene name
true if the index exists, false otherwise
true if the index exists false otherwise
sceneName
string
None
int
out
buildIndex
None