This method saves an opened file in the asset editor.
- boolean SaveFile()
- boolean SaveFile(number index)
Parameter | Description |
---|---|
index | index of the file to save, if specified, otherwise the currently selected item is saved |
Returns true if the specified file was saved, otherwise false is returned.
--Download a file from the web and open it
local index = program.asseteditor:OpenFile("https://www.github.com/ultraengine/...")
--Save the file
if index > -1 then program.asseteditor:Save() end