–获取节点下所有obj
local objs;
local oj= pin.transform:Find(“CenterPin”);
objs=oj:GetComponentsInChildren(typeof(“UnityEngine.RectTransform”))
print("打印名字 111: "…oj.gameObject.name)
如上面代码所见,部分函数需要用到“typeof(“xxxxx”)”再转换一次。网上没这方面的内容,我写出来,希望大家少踩坑。必须注意我的tolua是7.x的好像,所以typeof()才有用好像。