Is there something similar to "EditorApplication.currentScene" for the currently opened project? I'm doing some batch processing of the project and would like to grab it's name. Seems like there should be something in the API to easily do this already, but I can't seem to find it.
asked May 06 '10 at 09:29 PM
You can use the Application class to find the directory name where your Project Assets are stored - then cut up the path. That's the closest I know. Sample JS code would be:
So if your Project Assets was in: C:\Current Projects\Labs\01 Box Demo\Assets, the output would be project = 01 Box Demo.
answered May 06 '10 at 10:03 PM