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 functionsCalling a static function should use .
instead of :
in lua.
Example:
- Normal function call:
object:TestFunction()
. - Static function call:
object.TestFunction()
.