对cocosStudio的 节点 建议

编辑器中编辑好的UI,在代码的使用中有个非常繁琐的问题,在查找子节点控件的时候,需要不停的 getChildByTag 或者 getChildByName 一层一层的查找下去,希望能够在根节点 panel 上提供一个 方法,或者 子节点表,可以通过Name 直接查找。提高效率

楼主,这个是可以获取所有节点的。

楼主是说 ccui.Helper.seekWidgetByName 吗?js里用法如下:

var rootObject = ccs.SceneReader.getInstance().createNodeWithSceneFile(‘RoleCreate.json’);
this._uiObj = rootObject.getChildByTag(10005);
var uiNode = this._uiObj.getComponent(“GUIComponent”).getNode();
var wiget = ccui.Helper.seekWidgetByName(uiNode, “role_Panel”);