Skip to main content

Tips

Some extra tips for using LuaScript.

Namespaces#

  • namespace of CSharp code is CS in lua
  • namespace CrossLink is CL in lua, CL == CS.CrossLink
  • namespace UnityEngine is UE in lua, UE == CS.UnityEngine

Static functions#

Calling a static function should use . instead of : in lua. Example:

  • Normal function call: object:TestFunction().
  • Static function call: object.TestFunction().