I decided to experiment with Unity's new UI System, the UI Toolkit. In this video I show you how I created the basic UI for the game.
00:00 Introduction
00:55 Installing the UI Toolkit 1.0.0-preview.14 package
02:16 Creating the UI layout with UI Builder
06:56 Adding a UIDocument component to the UI empty
07:58 Adding Game Over Labels to the UI
10:58 Creating UI logic
14:33 Adding the binding paths to the Labels
16:37 Adding new events to MessageBroker
19:55 Adding massage handling code to the ScoreViewModel
22:29 Adding score update invokes to ScoreCounter
24:14 Adjusting Script Execution Order
26:15 Adding event unsubsrciptions to ScoreViewModel
Links I found useful when I was making the video:
The UI Toolkit Package
https://docs.unity3d.com/2020.1/Docum...
UI Toolkit
https://docs.unity3d.com/Packages/com...
Query(VisualElement, String, String[])
https://docs.unity3d.com/Packages/com...
CSS Flex Container
https://www.w3schools.com/css/css3_fl...
Github repo link of the project:
https://github.com/devviktoria/bdt001...