Step[0]: Run the following code
ResourceBrowser m_Module = Workbench.GetModule("ResourceManager"); if (m_Module) { string filename; m_Module.GetCurrentFile(filename); }
Step[1]: Crash!
Step[0]: Run the following code
ResourceBrowser m_Module = Workbench.GetModule("ResourceManager"); if (m_Module) { string filename; m_Module.GetCurrentFile(filename); }
Step[1]: Crash!
Note that this function works fine for ScriptEditor, but fails to work with ResourceBrowser.
The following code will not crash and happily print output!
ScriptEditor m_Module = Workbench.GetModule("ScriptEditor"); if (m_Module) { string filename; m_Module.GetCurrentFile(filename); Print(filename); }
devs plz fix fast i got a cool plugin im tryna build that needs this :(