About to test prefabs but I need more horsepower

This commit is contained in:
2023-03-22 18:00:39 -07:00
parent 162fabaf44
commit 1ce962f916
3 changed files with 3 additions and 14 deletions

View File

@ -1,13 +1,3 @@
<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 name="FPSLabel" type="ui/debug">
<UILabel ref="label" text="Hello World" />
</prefab>