
Learn to build a 2D hangman game in Unity with a virtual keyboard, categories, a timer, and animated petals for mistakes, and saving local stats.
learn to build hangman in unity with category word lists, a timer, rounds, and player stats, while implementing input methods, hints, and unlockable design ideas.
Import the three course assets into Unity and review the scene, hierarchy, inspector, and console. Organize UI as sprites, adjust the game view and aspect ratio, and prepare the canvas.
Split the texture atlas into multiple sprites with the sprite editor, auto slice, and bleed adjustments, then apply and prepare ui sprites for the scene.
Create a canvas and set it to scale with screen size. Anchor the background and grass area bottom-left, preserve aspect ratio, and enable the event system.
learn to implement the first two corner buttons in the canvas for the Hangman game, using a normal UI button, Text Pro, and TMP Essentials, anchored and mirrored.
Learn to build a modular virtual keyboard in Unity by auto-generating 26 uppercase letter buttons from a prefab, wiring each to input via the game manager and button creator.
Populate the keyboard by creating 26 letter buttons inside a button holder and instantiating a letter prefab. Assign each letter to the text merge pro component on its button.
Create a letter button script in prefab, with a public set button function and a letter field, then wire on click to send letter and log to the debug console.
Build the game manager to handle hangman mechanics by picking a word from a category, managing solved and unsolved word states, and instantiating letter prefabs via a grid layout.
Create a category system with scriptable objects and an asset menu for Hangman, store category names and word lists, and enforce uppercase words via a loop.
Learn how to create and organize categories for a hangman game in Unity, including naming a new animals category, populating word lists, and converting words to uppercase for gameplay.
Learn to randomly pick a category and a word, update the category text, instantiate all letters, and store them in an unsolved word array for gameplay.
Send the guessed letter from the input button to the check letter function and see if found. Update the letter holder and unsolved word, track mistakes, and trigger game over.
Create a public static game manager instance and call gameManager.instance.inputFromButton(letter) when a letter button is pressed, so the game can check the letter and determine a win.
Develop a hint system for a Unity hangman game: press a hint button to randomly reveal an unused letter from the keyboard, then disable that button and update state.
Implement a hint button for the hangman game, limit hints per level, connect to the game manager, and disable hints when the game ends or hints are exhausted.
Learn to animate petals in a Unity Hangman game by building an ap8 animation clip that pops, falls, disappears, and deactivates the petal via the sprite renderer and timeline frames.
Learn to manage animations by copying keys between frames, removing position keys, and disabling loop time to test rip-off sequences in the game.
Configure animator controllers to keep leaves idle until a miss triggers P1–P8 animations via transitions from any state using a miss trigger.
Configure the game manager to track mistakes using an array of leaf animators and a serialized max mistakes value, triggering miss animations and ending the game at petals count.
Guard the game state after game over and adjust the hint system so hints don’t cost lives, using a boolean isHint and proper input wiring in the hangman project.
Create reusable UI panels in Unity, including game over, win, settings, and stats overlays, on a canvas with anchors and a canvas group to block interaction, with a close button.
Create a Unity UI handler to slide panels in and out on button clicks, using panel animations and a switch on button IDs to manage settings, stats, wind, game over.
Create a menu scene with a background, title, and a vertical layout group for start and exit buttons, wired to a UI handler to load the game scene.
Create a stats container in Unity using a script object with a save file to track wins, losses, games played, fastest time, and win loss ratio, with save and load.
Read stats from the safe file container, convert floats to integers, and populate an integer list to display total wins, losses, games played, and fastest times in the stats UI.
Learn to read stats from a save file and populate a Unity hangman stats panel with text fields, showing total wins, losses, games played, win rate, and fastest time.
Learn to fix build errors when saving Hangman game stats by isolating Unity-specific calls, and implement a file-based save system that transfers script object data into a persistent save file.
Load saved hangman stats into serialized fields by reading the stats key string, verifying its existence, splitting by pipe, and parsing total wins, losses, win ratio, and fastest time.
Override the fastest time tracking so it only updates on a win in the Hangman game. Save the script to apply the change and finalize the update.
Build a full hangman game in Unity with multiple scenarios and themes, a dynamic interface, a virtual keyboard, a singleton-patterned game manager, and timers to track wins, losses, and stats.
In this Unity Video Course you will learn how to create your own Hangman - Word Guessing Game using the Unity Game Engine. For the functionality we write C# Code in Visual Studio or which ever IDE you choose.
This course is a Beginner course, so if you have trouble in any case, write me a message or Q&A, and i'll help as best as i can.
Unity (2021.3.3f1 used in this course)
You will learn to create a new Project in Unity and set up everything needed
I will show you how to create a card deck in a smart way
I will show you to interact with Buttons and how to create an AI (Dealer play)
C#
We will put in functionality with scripts using Visual Studio Code and C# (you can use any other IDE)
Also we implement a Betting System and a Message System
We create the game logic and all needed Prefabs
We use Text Mesh Pro for beautiful font visuals
Conclusion
As a result of this course you should be able to create your own levels with different categories to choose.
In the end of this course you will have a fully functional Hangman - Word Guessing Game.
Course Material
1 Texture Atlas with Card Back and Card Front, Background, Spades, Hearts, Clubs, Diamonds Symbols
You have to write the code on your own, i do not provide the final scripts!
The Course Material is for education purposes only, so if you want to release your own game, create your own grafics for that. All Materials i provide are for education only and should not be in your final release!
Challenge
After you have created nice Menus, Buttons, and maybe additional content, upload the Game to any Gaming Website, Google Playstore, Apple Store or even Windows Store or Steam.
So what are you waiting for?
Let's make your dream game a reality!!
Level: Beginner+
Video Course Length: ~
Unity Version required: 5.6+