Library structure
Any library function access begins from Lib. prefix declaration.
Complete list of all top level sub libraries:
- Lib.Away3D
- Lib.Media
- Lib.OAuth
- Lib.Project
- Lib.Reflect
- Lib.Str
- Lib.SQLight
- Lib.Sys
- Lib.Tool
- Lib.WebServer
- Lib.WebView
It's possible to use shorten variables for compact and faster access to any library object or function. For example:
Project = Lib.Project
local text = Project.getText("/folder/text.txt")
or even shorter:
local getProjectText = Lib.Project.getText
getProjectText("/folder/text.txt")
Best practice is to make any library call as short as possible for better performance and less memory usage.
NOTE:
In LuaStudio print() and require() replaced to custom versions. Lua originals can be found in package['___luaprint'] and package['___luarequire'].
Created with the Personal Edition of HelpNDoc: Free Kindle producer