- Home /
Accessing a UnityEditor class.
I have a class GameEditor that is using UnityEditor, every frame it gets the Scene name as a string and sets a public string currentScene as it.
I want to get currentScene from GameEditor through a non-editor class and display it as a GUILayout Label on the screen.
How do i do this?
EDIT: Could Application.loadedLevelName provide the same function?
Answer by Dom3D · Dec 20, 2012 at 04:38 AM
I think you answered your question :) Application.loadedLevelName
Your answer
Follow this Question
Related Questions
2017.3 Editor frame drop and movement reaction speed [ISSUE] 1 Answer
Objects that appear in the editor's game view do not appear in the game build 0 Answers
Debug Console doesnt show up 7 Answers
Creating a custom script that extends other scripts in Editor 1 Answer
Editor plays all sounds in the scene even when game is stopped 0 Answers