Версия Unity:Unity 5.6.6f2 (64-bit)
Не могу понять , что подключить в using чтоб ошибки не было. Добавил :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.SceneManagement;
#endif
...
public class SceneManagerWindow : MonoBehaviour
{
...
protected NewSceneSetup newSceneSetup = NewSceneSetup.DefaultGameObjects;
protected NewSceneMode newSceneMode = NewSceneMode.Single;
...
}
...
Но всё равно ошибка:
Assets/Scene/SceneManagerWindow.cs(15,12): error CS0246: The type or namespace name `NewSceneSetup' could not be found. Are you missing an assembly reference?
думаю это из-за
#if UNITY_EDITOR
#endif
SceneManagement.Scene
, который в свою очередь находится вUnityEngine.SceneManagement
, который вам и надо подключать.