local node = SceneReader:sharedSceneReader():createNodeWithSceneFile("scenetest/LoadSceneEdtiorFileTest/FishJoy2.json")
local star = node:getChildByTag(10004)
local star_button = star:getComponent("GUIComponent")
我在TestLua里的CocoStudioSceneTest.lua里添加了后面两句代码,出现了这样的错误:
Cocos2d: :22: attempt to call method 'getComponent' (a nil value)
我到LuaCocos2d.cpp里去看,发现并没有把CCNode里的getComponent绑定到lua中,但是在CCNode.h中又没有针对getComponent的@lua NA的注释,这是怎么回事呢,是我没有用对还是引擎的缺陷呢