How To Set Resolution in Unity - Complete Unity Menu System

  Рет қаралды 39,642

gamesplusjames

gamesplusjames

Күн бұрын

Пікірлер: 35
@jimkurth
@jimkurth 3 жыл бұрын
Hey James! James here. Thanks for all the helpful videos and your Udemy courses. Not long ago, you added an Online Multiplayer 1st Person game course and I just want to say thanks for that! I haven't finished your course yet but using what you've taught into my 2D pixel platformer-competitive multiplayer game, you've helped me accomplish developing this game that I originally started back in 2013 on XNA but stopped due to me not understanding how to make a multiplayer game. And now, it's becoming a reality in Unity with your help. Much love from Texas.
@syedsadiq8631
@syedsadiq8631 3 жыл бұрын
Ha man I have question how is handling sarver it is sarver side or not
@jimkurth
@jimkurth 3 жыл бұрын
@@syedsadiq8631 not sure what you’re asking. I’m using Photon Network to handle my multiplayer game and I can handle multiple instantiations joining a game together and watch each other move around and animate on the 2+ screens.
@syedsadiq8631
@syedsadiq8631 3 жыл бұрын
@@jimkurth thanks man I want help from you I am taking this Crouse. it have gun shop and player skines
@Ant0n009
@Ant0n009 3 жыл бұрын
I'm not too fond on hard coding resolution values, why not just use Screen.resolutions to get list of resolutions the monitor supports and use that as resolution options?
@majorThreatNOW
@majorThreatNOW 8 ай бұрын
your settings tutorials have been immensely helpful, much appreciated!
@Andmos98
@Andmos98 2 жыл бұрын
I know it's been a year but i swear your clips are amazing!
@randomselect9926
@randomselect9926 2 ай бұрын
Thanks for sharing this, you actually got me out of a bind, so THANK YOU!!
@martinlindvik8543
@martinlindvik8543 2 жыл бұрын
Great video! Very inspiring and informative. :) I have a super useful tip for anyone reading this, to simplify the string for the selected resolution. You can simply override the ToString() method of the ResItem class and set it to horizontal + " x " + vertical (Or use string interpolation and write $"{horizontal} x {vertical}") then simply call resolutions[selectedResolution].ToString() directly. If you want, you could also combine the ResLeft() and ResLeft() methods into a single method that takes a bool as a parameter, and do an if-else inside of it. Unity lets you pass in parameters into methods when assigning them to events.
@rutgervd
@rutgervd 3 жыл бұрын
The unitypackage in the assets in the description is the wrong one.
@sonofthekingsman
@sonofthekingsman 2 жыл бұрын
The following lines of code are having this error: [error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement] Does anyone know why? if (!foundRes) { ResItem newRes = new ResItem(); newRes.horizontal == Screen.width; newRes.vertical == Screen.height; resolutions.Add(newRes); selectedResolution = resolutions.Count - 1; UpdateResLabel(); }
@devonchapman9606
@devonchapman9606 3 жыл бұрын
Hi James, are you able to do a tutorial for setting the quality options the same way you do with the resolutions with 2 arrow buttons please?
@TNCGamer
@TNCGamer Жыл бұрын
help it says Index was out of range
@Mr.Epsilion
@Mr.Epsilion 3 жыл бұрын
Thanks, its a incredibly continue course on Udemy
@mortezamohammadifard4124
@mortezamohammadifard4124 Жыл бұрын
Very good video , thanks for your efforts
@rezazolgharnein7609
@rezazolgharnein7609 3 жыл бұрын
I entered the code in my project, but after the run, the camera view changes size and works properly, but the game view does not change and the screen remains fixed, which means I lose the area around the scene.
@TheAstrocricket
@TheAstrocricket 2 жыл бұрын
You May Have To Go To The Main Menu Object, and Then Switch the Canvas Scaler To "Scale With Screen Size"
@danielmurillo748
@danielmurillo748 2 жыл бұрын
super good and accurate, no errors, love it!!!! thanks soooo much!
@TransGuyShane
@TransGuyShane 3 жыл бұрын
Out of curiosity when will the next video be up?
@thefade7651
@thefade7651 3 жыл бұрын
Nice Video James!
@NoTimeLeft_
@NoTimeLeft_ Жыл бұрын
James what do you do to make sure the player doesn't use an aspect ratio that your game isn't designed for? Like some of these ultra wide? 3440x1440 and such. That could wreak havoc on UIs , no?
@thebigbennychannel
@thebigbennychannel 2 жыл бұрын
majestic tutorials,mate!
@flurinjenal374
@flurinjenal374 9 ай бұрын
Perfectly, I was looking for that! Does this also work for mobile games? And if yes, do we always need to set the "fullscreen" parameter for mobile to true?
@codewithsrijan368
@codewithsrijan368 3 жыл бұрын
Good Video Man
@justanotherchannel6758
@justanotherchannel6758 3 жыл бұрын
i did everything right but it didnt work on the bit where you make it so you can change the res left
@JaydacapTV
@JaydacapTV 2 жыл бұрын
I had the same issue and still haven’t found a fix
@sebastiangaming8317
@sebastiangaming8317 3 жыл бұрын
Hey can you make a tutorial on psx FPS game in unity!
@thebeepman6059
@thebeepman6059 2 жыл бұрын
I’m having a really strange issue that only effects the right resolution button, for some reason when I try to change it from 1920-1080c it’ll skip the middle 1280-720 option entirely and go straight to Element 2, I have literally no idea why this is happening, but would appreciate it if anyone could offer some assistance lol
@Armaan8014
@Armaan8014 2 жыл бұрын
Same
@tofally7511
@tofally7511 2 жыл бұрын
check < and > signs in your code.
@KalevaPoincare
@KalevaPoincare 3 жыл бұрын
Great series thus far. Only "complaint" I have is the pure white background. It's super bright when everything else I have is in dark mode 😅 Keep up the awesome work!
@codewithsrijan368
@codewithsrijan368 3 жыл бұрын
Please make a Video on a Multiplayer Game
@jimkurth
@jimkurth 3 жыл бұрын
He has a Udemy course on this using PUN2. You should take the course, it opened up a whole new way of thinking for me when it comes to multiplayer programming
@codewithsrijan368
@codewithsrijan368 3 жыл бұрын
@@jimkurth Thanks For Your Guidance
@RHYSHALLDIGITALART00122
@RHYSHALLDIGITALART00122 Жыл бұрын
i followed the brackeys tutorial set the height and width you simply add the resolution.width as the int intake to the player prefs width and height variables. hen in a load script on the main menu i made an if statement that if playerPrefs.HasKey ("PlayerPrefsResolutionWidth") then set the resolution to the height and width. to
How To Adjust Audio Levels in Unity - Complete Unity Menu System #4
24:27
Creating a Custom Tab System in Unity
13:45
Game Dev Guide
Рет қаралды 237 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,5 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 16 МЛН
Adding Graphics Options To Your Games - Complete Unity Menu System
19:08
SETTINGS MENU in Unity
17:22
Brackeys
Рет қаралды 957 М.
Get started with UI Toolkit in Unity
12:29
Sasquatch B Studios
Рет қаралды 50 М.
What size should your assets be? | HD 2D GAME ART
12:10
Nonsensical 2D
Рет қаралды 147 М.
ВСЕ ПРО АСИНХРОННОСЬ В UNITY! Ч.1. От корутин до async/await и UniTask
16:28
Яковлев Илья - IT и игры
Рет қаралды 4,5 М.
Unity's NEW input system in 13 minutes
13:02
BiteMe Games
Рет қаралды 29 М.
Creating A Main Menu Screen - Complete Unity Menu System
13:37
gamesplusjames
Рет қаралды 45 М.
SCRIPTABLE OBJECTS in Unity
8:57
Brackeys
Рет қаралды 1 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,5 МЛН