Save Game Data with 2 lines of code and CloudSave

  Рет қаралды 3,776

Jason Weimann

Jason Weimann

Күн бұрын

Multiplayer Mastery Course - game.courses/mp/
Game Dev Course for Beginners - game.courses/bc/

Пікірлер: 25
@jacobs.7925
@jacobs.7925 5 ай бұрын
Great video, ultra easy to use, thanks a ton! Would this work on a steam game, using steam cloud as well? Or would you need to duplicate your save files (one copy for unity cloud / one for steam cloud)? I find it ultra easy to implement steam sdk + local json files. How'd you use this Unity's system with Steam or even with nintendo switch cloud saves? (considering a multiplatform game). Thanks!
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
I'd probably use the steam or Nintendo options for those because they're free. Bit of you wanted tk add cross platform saves or migrations you could use cloud save as an interim location to share between systems.
@BlacklusterPally
@BlacklusterPally 5 ай бұрын
thanks, very interesting!
@-INC0GNIT0-
@-INC0GNIT0- 5 ай бұрын
I assume with the cloud files tab you could probably serialize your local json savefile into the Unity Cloud's storage with a key for example the savefile name and your entire json file as the file to be stored ?
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
Exactly
@-INC0GNIT0-
@-INC0GNIT0- 5 ай бұрын
@@Unity3dCollege sounds like an awesome idea I should look into then 😀 Would resolve a lot of save compatibility issues for cross platform games I suppose :)
@noyaV_
@noyaV_ 5 ай бұрын
Hey Jason, great vid as always! Also, sorry if it has been covered before, but what do those [Button] attributes do? A video about which attributes you like to use and which ones could be useful to devs, would be lovely
@RedCabinGames
@RedCabinGames 5 ай бұрын
The [Button] attribute is an Odin Inspector attribute. Paid asset that's well worth the price imo if you're using Unity a lot
@nuin9937
@nuin9937 5 ай бұрын
Here is a simple one I made if you don't want to buy Odin: using System; using System.Linq; using System.Reflection; using UnityEditor; using UnityEngine; using Object = UnityEngine.Object; namespace NuiN.NExtensions { [AttributeUsage(AttributeTargets.Method)] public class MethodButtonAttribute : PropertyAttribute { public readonly string label; public readonly bool onlyShowInPlayMode; public readonly object[] parameters; public MethodButtonAttribute(string label, bool onlyShowInPlayMode = false, object[] parameters = null) { this.label = label; this.parameters = parameters; this.onlyShowInPlayMode = onlyShowInPlayMode; } } #if UNITY_EDITOR [CustomEditor(typeof(Object), true)] public class MethodButtonAttributeDrawer : UnityEditor.Editor { public override void OnInspectorGUI() { Object script = (Object)target; MethodInfo[] methods = script.GetType().GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) .Where(method => method.GetCustomAttributes(typeof(MethodButtonAttribute), true).Length > 0) .ToArray(); foreach (var method in methods) { MethodButtonAttribute attribute = (MethodButtonAttribute)method.GetCustomAttributes(typeof(MethodButtonAttribute), true)[0]; string buttonLabel = attribute == null ? method.Name : attribute.label; if (attribute == null || (attribute.onlyShowInPlayMode && !Application.isPlaying)) continue; if (GUILayout.Button(buttonLabel)) method.Invoke(script, attribute?.parameters); } base.OnInspectorGUI(); } } #endif }
@nuin9937
@nuin9937 5 ай бұрын
Can I ask why you dont use the enter playmode options to not recompile when entering play mode?
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
Causes problems more than it saves me time. Especially with mppm.
@nuin9937
@nuin9937 5 ай бұрын
@@Unity3dCollege good to know, thanks :)
@y01cu_yt
@y01cu_yt 5 ай бұрын
That looks cool.
@nikolamk1
@nikolamk1 5 ай бұрын
thanks for this, any price plans, limits... or its free?
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
It's pretty cheap, but of course depends on scale. Free up to 5gb/mo & some # of requests. Here's the full pricing page - unity.com/solutions/gaming-services/pricing
@99ZULU
@99ZULU 5 ай бұрын
FYI I don't know if it is just me, your audio is constantly scratchy.
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
I think it's the mic cable, going to replace it
@JarlThorson
@JarlThorson 5 ай бұрын
Hey! That's the password I use on my luggage!
@Unity3dCollege
@Unity3dCollege 5 ай бұрын
love that movie!
@poopcanothegreat9947
@poopcanothegreat9947 5 ай бұрын
Sir we’ve lost the beeps the sweeps and the creeps!
@letsgoPi
@letsgoPi 3 ай бұрын
'69' '42' 'random'
@qomo-yh7vd
@qomo-yh7vd 3 ай бұрын
Multiplayer Mastery Course price is 500$! too too expensive
@qomo-yh7vd
@qomo-yh7vd 3 ай бұрын
Multiplayer Mastery Course price is 500$! so expensive bro
@moofymoo
@moofymoo 4 ай бұрын
Jesus saves with one prayer. ha, checkmate!
How to make a Save & Load System in Unity | 2022
26:56
Shaped by Rain Studios
Рет қаралды 172 М.
g-squad assembles (skibidi toilet 74)
00:46
DaFuq!?Boom!
Рет қаралды 11 МЛН
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 73 МЛН
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 577 М.
AiVY - LifeHack 2024
4:56
Ultra Raptor
Рет қаралды 2
Non-Compete Banned - What's it mean for GameDevs?
2:29
Jason Weimann
Рет қаралды 17 М.
Be CAREFUL with Scriptable Objects!
8:27
Code Monkey
Рет қаралды 73 М.
How to know if a video is finished in Unity
5:39
El Profesor Kudo
Рет қаралды 2,9 М.
Stats in Unity - How I do it!
8:49
One Wheel Studio
Рет қаралды 35 М.
Going Serverless with Unity Cloud Code
31:57
Memphis Game Developers
Рет қаралды 1,1 М.
2 Overrides every Unity Dev should Use #unitytips
5:33
Jason Weimann
Рет қаралды 10 М.
SPEED UP Your game development with these 10 TOOLS! (Unity)
13:25
Sasquatch B Studios
Рет қаралды 7 М.
g-squad assembles (skibidi toilet 74)
00:46
DaFuq!?Boom!
Рет қаралды 11 МЛН