f111fei/react-native-unity-view

How to configure the project, If I have multiple scenes ?

Closed this issue · 2 comments

It works in single scene,
How to configure the project, If I have multiple scenes? Like specify the scenes order...

You can send messages to Unity to switch the scene.

Thanks for reply, I've found the following code:

    static string[] GetEnabledScenes()
    {
        var scenes = EditorBuildSettings.scenes
            .Where(s => s.enabled)
            .Select(s => s.path)
            .ToArray();

        return scenes;
    }

Like normal "Build Settings" configuration, I can select enabled scenes and switch them via messages.