|
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.
(comments are locked)
|
|
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. That is pretty much what I assumed I would have to do. Thought maybe they would have stored the actual project name somewhere... oh well.
May 07 '10 at 04:52 PM
Bill
(comments are locked)
|
