Unity Project Initialization Template Tutorial

Publié le: 11 avril 2023
sur la chaîne: KukeyMonster
43
1

This is for my Teachback GAM370 class.
If this helped you feel free to share and like the video!

===============================================================

CHAPTERS
0:00 Starting up a project
1:00 Creating our Init Scene
3:00 Scripting our Init Scene
6:48 Creating our MainMenu Scene
7:12 Scripting our MainMenu
16:13 Designing the UI for our MainMenu
18:15 Dealing with Unity Crashing
19:45 Back to Designing our UI for MainMenu
22:55 Scripting our OptionsMenu
1:00:35 Designing the UI for our OptionsMenu
1:21:42 Fixing Bugs made throughout the tutorial

===============================================================
I figured out what happened in Load Settings()
This is the incorrect script!
if (PlayerPrefs.HasKey("ResolutionPreference"))
{
qualityDropdown.value = PlayerPrefs.GetInt("ResolutionPreference");
}
else
{
resolutionDropdown.value = currentResolutionIndex;
}

if (PlayerPrefs.HasKey("TexturQualityPreference"))
{
qualityDropdown.value = PlayerPrefs.GetInt("TexturQualityPreference");
}
else
{
textureDropdown.value = 0;
}

if (PlayerPrefs.HasKey("AntiAliasingPreference"))
{
qualityDropdown.value = PlayerPrefs.GetInt("AntiAliasingPreference");
}
else
{
aaDropdown.value = 1;
}
===============================================================
This is correct!
if (PlayerPrefs.HasKey("ResolutionPreference"))
{
resolutionDropdown.value = PlayerPrefs.GetInt("ResolutionPreference");
}
else
{
resolutionDropdown.value = currentResolutionIndex;
}

if (PlayerPrefs.HasKey("TexturQualityPreference"))
{
textureDropdown.value = PlayerPrefs.GetInt("TexturQualityPreference");
}
else
{
textureDropdown.value = 0;
}

if (PlayerPrefs.HasKey("AntiAliasingPreference"))
{
aaDropdown.value = PlayerPrefs.GetInt("AntiAliasingPreference");
}
else
{
aaDropdown.value = 1;
}


Sur cette page du site, vous pouvez voir la vidéo en ligne Unity Project Initialization Template Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur KukeyMonster 11 avril 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 43 fois et il a aimé 1 téléspectateurs. Bon visionnage!