Skip to content

Blueprint call lua

asqbtcupid edited this page Feb 3, 2018 · 2 revisions

There is two type node for blueprint to interact with lua.

1. LuaCtor

LuaClassPath is lua path, require it in lua must return a lua table Inherit table CppObjectBase

This Node will create a lua table to represent the Blueprint object.

2. LuaCall_X_Y

There are lots of LuaCall_X_Y Node

  • X mean how many parameter you want to pass to Lua while Y is how many return value you want from lua.

  • If you don't link ins input,then will call global lua function.otherwise call the lua class function.

  • basic type(int,float,bool,name,text,string....) are passed by value

  • struct type is passed by referenced.

  • can't pass container Paramter(map,array,set),but you can put them into a struct then pass the struct.

Clone this wiki locally