Useful Lua code snippets — code sample - Stingray Lua API Reference

Useful Lua code snippets — code sample

Description

The examples in this section illustrate how to carry out common types of tasks using the Stingray Lua API.

Sub-modules

This example shows how to use the stingray.ProceduralMesh interface to create meshes on the fly:
This example shows how you can use the stingray.SaveSystem interface to save runtime data to a file on disk and read it back into the project later.
This example shows how to find out the unit that is under the current position of the mouse cursor.