ccc中,如何包在指定的节点下

在ccc中,fgui.GRoot.create();生成的GRoot跟Canvas是同级的。
加载UI:

let win_view1:fgui.GComponent = fgui.UIPackage.createObject(“包名”, “组件名”).asCom; fgui.GRoot.inst.addChild(win_view1);
这样的加载都是在GRoot。contariner下
 
我需要将所有的窗口放在一个节点下,请问如何操作?
 
已邀请:

codercmd

赞同来自:

 let ccc:fgui.GComponent = new fgui.GComponent();
        ccc.setSize(0,0);
        fgui.GRoot.inst.addChild(ccc);
ccc.addChild(xxx);就可以了。
主要用于层级

要回复问题请先登录注册