call getComponent get a string

call getComponent get a string
0.0 0


I use cocos2d-x-3.0alpha1 and CocoStudio-v1.2. when I call child:getComponent(“mymaps”) it return a string,should not be a TMXTiledMap?
Code is as follows:
local scene = cc.Scene:create()
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile(“res/scene/GameDemo.json”)
local child = node:getChildByTag(“10004”)
for k, v in pairs( getmetatable(child)) do
print(k, v)
local tmx =child:getComponent(“mymaps”)


By the CocoStudioSceneTest test case in the 3.0 beat0,I can’t reproduce this bug.I will check it against in the cocos2d-x-3.0alpha1.


yeah ,in the cocos2d-x-3.0alpha1 it’s not bind “Component” to lua .so reutrn string


Yeah,the Component was bound to lua in the v3.0 beta-2