c# scene manager

C#
using UnityEngine;
using UnityEngine.SceneManagement;public class GetActiveSceneExample : MonoBehaviour
{
    void Start()
    {
        Scene scene = SceneManager.GetActiveScene();
        Debug.Log("Active Scene is '" + scene.name + "'.");
    }
}

Source

Also in C#: