
Create a 3D memory game in Unity with interactive buttons, a countdown timer, scoring, card animations, and confetti particle effects, plus win/lose screens and game modes.
learn to build a 3d memory game in unity: create and animate cards, manage matches, and add confetti particles, a timer bar, scoring, and level layouts.
Build a flat 3d memory card, reset its transform, and create a sprite atlas by importing underwater textures and using the sprite editor to slice the cards.
Create a Unity 3D memory game card prefab by adding a card back and an empty front, then tune scale, rotation, and placement with the Sprite editor.
Create a card holder object to isolate animations, then flip the card 180 degrees with keyframes in the Unity animation window, producing open and close flip clips.
Set up an animator on the card, add a flipped open parameter, create idle state, and configure transitions between idle, flip open, and flip close to control card animations.
Implement player input to flip a 3D memory card using a card holder prefab, camera raycast on left-click, and the animator to trigger the flip.
Create a card script that defines the card ID, initializes the front sprite via the sprite renderer, and connects the animator to flip the card upon instantiation.
Link the card to its holder and animator, configure the box collider and sprite renderer for proper input, and implement a public flip open function to drive the animator.
Create a card manager to generate the play field, manage card pairs, instantiate a card prefab, and assign sprites to card fronts for a memory game.
Implement a dynamic card deck of game objects, instantiate and add cards to the deck, shuffle the deck with an in-place swap, and position shuffled cards on the play field.
Learn to generate and place memory game cards on a playfield in unity by defining grid width and height, computing vector positions, and shuffling the deck.
Implement playfield validation in Unity by using a draw gizmos diagnostic to verify width times height matches param times two, and log errors when mismatches occur to prevent range errors.
Center the main camera and copy its component values to preserve the view across play mode. Align the camera for different board sizes and set up future matching mechanics.
Learn to implement win detection in a Unity 3D memory game by counting matched pairs, syncing the card manager with the game manager, and triggering win feedback and debug checks.
Learn to simplify parameter calculation in Unity by creating an editor script that overrides the card manager, uses a dedicated Ed folder, and serialized properties for width, height, and sprites.
Override the card manager inspector to edit width, height, and card pairs from the editor. Auto-calculate the paramount from width and height and warn if the grid is too large.
Visualize the playfield for a 3d memory game in the unity editor using gizmos to preview a card grid, while clamping width and height to zero.
Create a countdown timer for the 3d memory game using an enumerator, expose time left, trigger game over on zero, and implement a score manager to save and load scores.
Visualize a countdown timer in Unity by building a timer UI with a canvas, images, and a time bar using anchors, atlas textures, and adjustable slicing.
Link a time bar image to a time manager script, compute the remaining time as a percent of the full duration, and update the image fill amount.
Add a timer text with TextMeshPro, connect to the score manager, and update the time left using a countdown timer bar with proper anchoring and the temp time variable.
Create a scoring system and UI layout by anchoring the score display to the top left, updating a score text via a score manager script when points are earned.
Implement a turn system in Unity's 3D memory game by counting turns, updating a turns text via the score manager, and wiring UI elements to reflect each flip and match.
Attach a confetti particle effect to the card holder, trigger on a match, and configure a burst with color variation, gravity, 3d rotation, and a non looping duration.
Learn to trigger a confetti particle effect on match in a Unity 3D memory game by wiring the effect to the card script and using a dedicated effects camera.
Stop the timer when all matches are found by coordinating with the score manager, halting the timer on win and exposing a public stop function.
Implement random sprite selection for the memory game by copying the sprite list to a temporary deck via the card manager, selecting random indices without duplicates, and filling the playfield.
Create a full-screen game over panel overlay with a background image and centered text, then add retry and back to menu buttons.
Optimize the game over panel design by aligning bottom panel buttons with anchors, using vertical layout group, and ensuring consistent scaling across 16 by nine and free aspect ratios.
Add a win screen confetti effect in Unity by copying the confetti from the card holder prefab, positioning and rotating emitters, looping, and adjusting lifetimes for a dynamic celebration.
Activate the win panel and confetti by code when winning, reveal the game over panel on loss, and disable all panels at start to prevent premature effects.
Create a Unity menu buttons script with public functions to load scenes and restart the current level, and wire them to UI buttons and the game manager using scene management.
Create a menu scene by duplicating a sample ui, arranging buttons in a vertical layout, and configuring anchors and backgrounds for play, easy, normal, hard, and insane modes.
Duplicate sample scenes to create easy, normal, hard, and insane modes, then wire menu buttons to load each scene and set per mode playfield sizes and time limits.
Implement a website button in the Unity 3D memory game, using a web loader to open a URL via application.openURL, and rename it to visit home page for all modes.
Add a desk background by importing a checker texture, creating a material, applying it to a background cube, and tiling 10x10; reuse across scenes with color tweaks for modes.
Set up a menu background in Unity by tiling a sprite with image type tiled, adjusting the sprite editor center and borders, and applying color to fit the menu panel.
Clean up the project by removing all debug lines from scripts, then search with control-F to ensure the console is clean before building.
Build a 3D memory game in Unity, with menus, a timer, win/lose screens, confetti, score, turns and combos, plus saving progress.
Fix a Unity 3D memory game bug by checking for an existing card before adding it to the cards list, preventing selecting an already open card and null reference errors.
In this Unity Video Course you will learn how to create your own 3D Memory Game or 3D Matching Game using the Unity Game Engine. For the functionality we write C# Code in Monodevelop, Visual Studio or which ever IDE you choose.
This course is a Beginner/Intermediate 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 (2020.3 used in this course)
You will learn to create a new 3D Project in Unity and set up everything needed
I will show you how you can setup the playfield and create our own cards.
I will show you to interact with the cards and flip them using the Animator
C#
We will put in functionality with scripts using Monodevelop and C# (you can use Visual Studio or any other IDE)
Also we implement a Timer, Score and Turns for more User Experience
We create an Editor Script to simplify our Game Playfield or Grid settings
We create some helper fuctions to visualize the playfield as well.
Conclusion
As a result of this course you should be able to create your own level with different sizes and cards for your Memory Game.
In the end of this course you will have a fully functional 3D Memory Game.
Course Material
1 Card Deck with 10 Animals
7 UI Atlas with different UI Grafics
1 Checkerboard Texture
1 extra Background for UI Menu
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: ~6h 43mins
Unity Version required: 5.6+