Dawn/assets/example-prefab.xml

13 lines
416 B
XML

<prefab>
<asset type="bitmapfont" name="font_bitmap" texture="bmfont.png" rows="16" columns="16" />
<component ref="canvas" type="UICanvas" />
<children>
<item>
<component ref="label" type="scene/components/ui/UILabel::UILabel" text="Hello World" font="font_bitmap" />
</item>
<!-- So here you can either do <item> which is recursive, or a prefab if you desire. -->
</children>
</prefab>