Logo my studio is game, portfólio is developer game

Get the name of the current Unity scene

To get the name of the current Unity scene is very easy: 

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

public class GerenteDoJogador : MonoBehaviour
    private Scene m_Scene;
    public string sceneName;

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

Make contact!

Did you like this content? Let's talk...

I'm a game developer, I use unity. If you want to develop something, tell me!