Check out example codes for "unity scene name get". It will help you in understanding the concepts better.

Code Example 1

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GetSceneName : MonoBehavior {

	Scene m_Scene;
	string sceneName;

	private void Start() {
   		m_Scene = SceneManager.GetActiveScene();
   		sceneName = m_Scene.name;
 	}
}

Learn ReactJs, React Native from akashmittal.com