@ozergul wrote:
Hi,
I have a prefab and I instantiate it to a layout.After instantiate, these items are not arranged in Layout.
Are there any method to update Layout View?
for (var i = 0; i < g_array.length; i++) { // create node by prefab var new_node = cc.instantiate(this.label_prefab) new_node.parent = this.node new_node.getComponent("cc.Label").string = g_array[i] console.log(new_node) // works }
I found my problem. This was a check problem in Widget at prefab.
Posts: 1
Participants: 1