Section DevTools
Some dev tools for script authors
Summary
| Return type | Function and summary |
|---|---|
| RecentScriptsAdd(string path, string name) In debug mode, add current script to the "Recent scripts" list. |
Function
RecentScriptsAdd(string path, string name)
In debug mode, add current script to the "Recent scripts" list.
This is a tool for devs that allow them to quickly run or edit most recents scripts, from Scripts > Miscellaneous > Dev tools > Recents scripts
| Parameter | Type | Default | Description |
|---|---|---|---|
| path | string | GetCurrentPath( | ) Directory where the script is stored |
| name | string | Application.CurrentScriptName | Script file name |
- Usage
-- At the beginning of your script Include "SMUtils" RecentScriptsAdd() -- Run at least once your script from the editor (in debug mode)