Jump to content

Get relative path to current UnigineScript file


Recommended Posts


let's say we have a test.ui file which is loaded by script.usc both located in the same folder.


UserInterface ui = new UserInterface(engine.getGui(), "test.ui");

Apparently, the engine is not looking the "current" directory, but in "C:/Users/user/Unigine_sdk.../bin" where the editor is located.

Is it possible to load the .ui file with a path relative to the script itself?

Thanks in advance.

Edited by karim.salama
Link to comment
  • Create New...