Difference between revisions of "Loading Order of Lua Files"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:Loading Order of Lua Files --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.png...") |
(added see also) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | ||
<!-- GIDEROSOBJ:Loading Order of Lua Files --> | <!-- GIDEROSOBJ:Loading Order of Lua Files --> | ||
− | ''' | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> |
− | ''' | + | '''Available since:''' Gideros 2020.5<br/> |
− | === | + | === Description === |
You can now implement Gideros Code Dependency by code instead of Gideros project setting. | You can now implement Gideros Code Dependency by code instead of Gideros project setting. | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 20: | Line 20: | ||
'''This is very useful if you develop a Lua library that is meant to be used in several projects.''' | '''This is very useful if you develop a Lua library that is meant to be used in several projects.''' | ||
+ | |||
+ | === See also === | ||
+ | '''[[Require]]''' | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 01:06, 26 September 2020
Supported platforms:
Available since: Gideros 2020.5
Description
You can now implement Gideros Code Dependency by code instead of Gideros project setting.
--!NEEDS:your_file.lua
This will tell Gideros to load your_file.lua before the file containing the above code.
To tell Gideros the file should not be executed/parsed right on start but will be loaded through a require or a loadfile command, you can write:
--!NOEXEC
This is very useful if you develop a Lua library that is meant to be used in several projects.
See also
Methods |
EventsConstants |