ugui tolua
local test = {}
test.b = gameobject
test.c = gameobject:GetComponent(typeof(UnityEngine.UI.Button ))
First call UnityEngine.GameObject.Destroy(test.b)
If the test table
ugui tolua
local test = {}
test.b = gameobject
test.c = gameobject:GetComponent(typeof(UnityEngine.UI.Button ))
First call UnityEngine.GameObject.Destroy(test.b)
If the test table
The performance optimization of unity+lua mainly needs to pay attention to a few points
class LuaUtil{
static void SetPos(GameObject obj, float x, float y, float z){obj.transform.position =