Loading Order of Lua Files

From GiderosMobile
Revision as of 23:49, 11 August 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:Loading Order of Lua Files --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.png...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.png
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.

Methods

Events

Constants