- Home /
Question by
worldsbestboss · Aug 24, 2014 at 06:20 AM ·
sceneapplicationapplication.loadlevel
How to Get Name of Scene Based off Number?
You can do Application.LoadLevel(1) but is there a way to tell what the name of the loaded scene is before loading it? Is that information available anywhere?
Comment
Answer by tanoshimi · Aug 24, 2014 at 06:32 AM
You can't, directly, though there are workarounds.
Google gave me this as a top hit: http://answers.unity3d.com/questions/33263/how-to-get-names-of-all-available-levels.html