cocoscreator布局组件layout的type值不能动态修改吗,我想要内容少的时候使用横向布局,内容多的时间使用grid布局来自动换行,这个无法实现吗?
layout.type = cc.Layout.Type.GRID;
layout…updateLayout();
和
layout.type = cc.Layout.Type.HORIZONTAL;
layout…updateLayout();
这样没有效果
cocoscreator布局组件layout的type值不能动态修改吗,我想要内容少的时候使用横向布局,内容多的时间使用grid布局来自动换行,这个无法实现吗?
layout.type = cc.Layout.Type.GRID;
layout…updateLayout();
和
layout.type = cc.Layout.Type.HORIZONTAL;
layout…updateLayout();
这样没有效果