Search Unity

[Solved] Question - Get Scene Name

Discussion in 'Scripting' started by kholyphoenix1, Nov 19, 2015.

  1. kholyphoenix1

    kholyphoenix1

    Joined:
    Apr 17, 2015
    Posts:
    57
    Hello,

    How do I collect the scene name and save it in a variable?

    Thanks a lot!!
     
  2. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129

    Code (CSharp):
    1. string sceneName = Application.loadedLevelName;
    :)
     
    kholyphoenix1 likes this.
  3. kholyphoenix1

    kholyphoenix1

    Joined:
    Apr 17, 2015
    Posts:
    57
    Cool!!
    Thanks a lot!
     
    Nigey likes this.