I’m looking for a way to get the name of the currently opened .unity file in my project. I want to save out a level data file that is named the same as the .unity file (different location and extension of course) and I’d like to avoid using a file browser, etc. Is this information tucked away somewhere on a utility class? I looked in the various Editor classes as well as FileUtil but didn’t see anything.
Application.loadedLevelName
Hello!
Maybe you are looking for Application.LoadedLevelName ?
Hope this is what you where looking for
rozgo, naruse,
That’s exactly what I was looking for, thank you.