Table of Contents

Method GetScenePathByName

Namespace
Gamelogic.Extensions.Editor
Assembly
Gamelogic.Extensions.Editor.dll

GetScenePathByName(string)

Gets the path of a scene from its name, using the build settings. The scene need not be loaded.

public static string GetScenePathByName(string name)

Parameters

name string

The name of the scene.

Returns

string

The path of the scene.

Exceptions

Exception

No scene with given name found or duplicate scenes found.