Create A 2D Idle Clicker Game in Unity! Tutorial 10 | Saving The Game When It Closes

Channel:
Subscribers:
3,030
Published on ● Video Link: https://www.youtube.com/watch?v=g0ygmEgogoY



Category:
Tutorial
Duration: 13:35
9,280 views
69


Hey guys, what's up! Tim Here!
This save system will save data if you close the game! Using PlayerPrefs any data type can be saved even ulongs or booleans! By saving and loading these data types you can continue progression even when the game closes. I hope you all enjoy it!

Find the Code on Github:
https://github.com/TimmyJTech/BarnyardSmash

Please Like and Subscribe for more! 👍
Check out My Latest Video Here!
https://youtu.be/rXJB_h9l69E

SerializeField: https://docs.unity3d.com/ScriptReference/SerializeField.html
PlayerPrefs: https://docs.unity3d.com/ScriptReference/PlayerPrefs.html
DontDestoryOnLoad: https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
OnApplicationQuit: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnApplicationQuit.html

Unity:
https://unity.com/

Visual Studio Code:
https://code.visualstudio.com/


▼ Follow Me
Instagram: TimmyJTech
Twitch: http://twitch.tv/TimmyJTech
Twitter: http://twitter.com/TimmyJTech

▼ Help me out by joining my Patreon!
https://www.patreon.com/TimmyJTech

▼ Join my Discord Server!
https://discord.gg/7Vq5fCj


🎧 Music 🎧
▼ Background Songs ▼
▼Title: Evening Tide
Artist Name: Kupla
Link: https://www.youtube.com/watch?v=tFd10sRytdw&ab_channel=ChillhopMusic
▼Title: [REVIVE.]
Artist Name: KEEM.THE.CIPHER
Link: https://www.youtube.com/watch?v=DForICPm8hg&ab_channel=Vibin%27
▼Title: within
Artist Name: leavv
Link: https://www.youtube.com/watch?v=nxGd4ry-fKY&ab_channel=jamutka32

MUSIC: INFRACTION - GOOD VIBE
Link: https://youtu.be/SrY7LBvrY4g


#madewithunity #gamedev #unity







Tags:
grayshadoz
gaming
gray
grey
shadow
greyshadoz
phantom
optimize
game
development
software
design
devoptimize
grayshadows
greyshadows
gamedesign
2d
idle
clicker
unity
tutorial
auto
canvas
background
forest
creating
games
indie
developer
dev
develop
program
code
patreon
learn
create
lesson
two
objectives
click
farm
farmer
barnyard
tap
project
autoclicker
automatic
button
gui
basic
playerprefs
saving
data
ulong
bool
int
money
string
float
dontdestroyonload
duck
progression
close