::Hi soop, thank you for tuning in to the stream earlier today :) I’ve timestamped the part of the stream below where I answered how to handle different screen sizes / resolutions, for your convenience.
<iframe title=”Coding Stream #49 — Creating a Rogue-like (like Vampire Survivors) in Unity” width=”1000″ height=”750″ src=”https://www.youtube.com/embed/IUAb-Ktg0k8?start=5158&feature=oembed” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share” referrerpolicy=”strict-origin-when-cross-origin” allowfullscreen></iframe>
Settings
Regarding the settings page, I assume you are asking how to save data that the user tweaks in those pages correct? Usually, to save game settings, PlayerPrefs are used: https://docs.unity3d.com/6000.3/Documentation/ScriptReference/PlayerPrefs.html
PlayerPrefs are a very convenient way to save global game settings, and you can save either floats, integers or strings with them. For example, to save a brightness setting the player keys into the settings page, you can use:
<code>PlayerPrefs.SetFloat("Brightness", enteredValue);</code>
Then, to retrieve it elsewhere, you can do:
<code>float brightness = PlayerPrefs.GetFloat("Brightness");</code>
Save states
Regarding save states, I will need to refer you to the Bench Universal Save System, an asset created to save games in our Metroidvania series: https://assetstore.unity.com/packages/tools/utilities/bench-universal-save-system-334468
This video should give a quick glimpse into how to use it:
https://youtu.be/XhLCot0DXp