Loading Scene file for automatic layout

Loading Scene file for automatic layout
0.0 0

#1

I have a scene file exported to json from Cocos Studio. I load this file and want the elements inside of it to position themselves on the screen automatically, using layout. The problem I have at the moment is that the node I load is of class Node - and since it’s not an ui.Widget, it doesn’t automatically layout itself and it’s children.

What is the standard way of loading resources for automatic layout?