14. 2D Platformer in Unity: UI and Score Tracking

Welcome to Part 14 of our 2D platformer series! We can collect diamonds, but right now they just disappear into the void. Today, we are developing our software application interface by diving into Unity's UI Canvas system. We will learn how to use TextMeshPro, how to properly anchor UI elements so they scale to any screen size, and how to write a GameManager script to connect our diamond collisions directly to an on-screen score counter! In this video, you will learn: How to create a UI Canvas and import TextMeshPro Essentials. How to use the Canvas Scaler and Anchor Presets. How to write a ScoreManager script with a custom public method. How to use the TMPro namespace in C# to manipulate text data. How to use FindFirstObjectByType to communicate between different scripts.