I’ve got UITK preview 13 and UIBuilder preview 10 installed. I cannot for the life of me find the fields to use the new font assets, easy enough to set it in uss, but where is it in UIBuilder?
Updated to the latest version of UIBuilder, it now gives me a message under Text stating I need to install the latest UI Toolkit package, which I have. So how do I get this working?
Which version of Unity are you on? The new Font Asset is only supported on Unity 2021.1.
Then why do the patch notes say or? Plus it says 2021.2+ which doesn’t exist, at least for us.
(2021.2+ or with com.unity.ui package installed) Rich Text Support:
- New Font Asset style property in the Inspector now allows use of the new FontAsset asset.
- If the FontAsset supports it, there are new Text Outline and Text Shadow styling options available.
- Text elements get a new attribute: “Enable Rich Text”, which decides whether Rich Text tags are parsed.
- The “Text” attribute on text elements now supports Rich Text tags which will style the text in the Canvas.
It’s my bad. It is indeed or, but it’s incomplete information. It should say:
2021.1 + com.unity.ui
OR
2021.2 (as in, will be available by default in the next major release which indeed does not yet exist)
I’ll fix the forum post at least.
I updated my project to 2021.1.0a8.1475 and I get 5 errors related to UIElements. Seems that UITK preview 12 and 13 are not compatible with 2021.1.0 which defeats the update for UIBuilder. So to use FontAssets and UIBuilder with 2021.1 I need to wait for UITK to be compatible with that version. Not too happy about that, but I guess I will have to wait for it to be in sync.