How to Keep Score in Unity Using Unity Events and Text Mesh Pro @KetraGames
How to Keep Score in Unity Using Unity Events and Text Mesh Pro  @KetraGames
Uploaded September 2023 | Updated September 2026, 2 weeks ago
In this Unity tutorial we're going to look at how to allow the Player to gain points by killing enemies, and how to display the score on screen.

We'll cover the creation of scripts to keep track of the score and increase it when enemies are killed. Then we'll display the score using Text Mesh Pro and use Unity events to update the UI whenever the score is changed.

This is the fifteenth video in our series showing how to make a full top down 2D shooter game in Unity.

The playlist for this series can be found here
youtube.com/playlist?list=PLx7AKmQhxJFajrXez-0GJgDlKELabQQHT

The project files are available to our patrons here:
patreon.com/posts/89775350

Want to follow along? This project is a good starting point
patreon.com/posts/88654003

The full Top Down Shooter Project is available to our patrons here
patreon.com/posts/75231350

The final script can be found here
dotnetfiddle.net/CCn3IZ

Help support our work:
► Patreon: patreon.com/ketragames

Follow us:
► Ketra Games: ketra-games.com
► Patreon: patreon.com/ketragames
► Twitter: twitter.com/ketragames
► Facebook: facebook.com/ketragames

Introduction - 0:00
Creating a Script to Keep Track of the Score - 0:35
Creating a Script to Increase the Score When the Enemy Dies - 2:30
Displaying the Score in the UI Using Text Mesh Pro - 5:24
Summary - 8:44:38

Thumbnail Image by FreePik - freepik.com/free-vector/futuristic-horizon-background_5580072.htm#page=2&query=arcade%20background&position=6&from_view=keyword&track=ais

#KetraGames #LearnUnity #UnityTutorials #UnityTips
How to Keep Score in Unity Using Unity Events and Text Mesh ProMaster Character Movement in Unity - Input Actions Made Easy2D Top Down Shooter - Upgrade to Unity 6Smooth 2D Movement Using the New Input System (Unity Tutorial | 2D Top Down Shooter)Colliding with Obstacles (Unity Tutorial)Public vs Private Fields (Unity Tip)Simple AI Obstacle Avoidance in UnityCreating Simple Enemy AI to Chase the Player (Unity Tutorial | 2D Top Down Shooter)A Beginner Level Introduction to Prefabs (Unity Tutorial | 2D Top Down Shooter)Positioning Objects using Vertex Snapping (Unity Tip)Root Motion Explained (Unity Tutorial)Recentre the Camera on Key/Trigger Press Using Cinemachine (Unity Tutorial)
Ketra Games |

How to Keep Score in Unity Using Unity Events and Text Mesh Pro

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER