Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Kronus.

Showing 4 equal resolutions in Windows Build

Question

Hi guys,

 

Today I started to make a Main Menu for my project and somehow when I made the Options part I found a bug.

When I'm in editor the resolutions of the dropdown are shown perfectly, but when I use this in a build it is showing the same resolution 4 times.

 

OBS: This resolutions working perfectly, each resolution I choose it works as it should. But it stills annoying me.

 

This is the part of code i'm using to update the dropdown options:

Please login or register to see this code.

 

Thank you, regardless!

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Because with "Screen.resolutions" you get resolutions with different refresh rates:
Please login or register to see this link.

 

Please login or register to see this code.

 

  • Thanks 1

Share this post


Link to post
Share on other sites

  • 0
Please login or register to see this quote.

Yeah man, you are absolutely right!

Thank you for help!

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites
  • 0

Just for help if other people have the same issue.

I solved this way:

Please login or register to see this code.

 

Please login or register to see this attachment.

  • Like 2

Share this post


Link to post
Share on other sites
  • 0

Make array for "frames per second" and other for "resolution". I think this will be better.

Share this post


Link to post
Share on other sites
  • 0

This is not  about "frames per second", it's about monitor's refresh rate, it just matter if you have a monitor with more than 60Hz refresh rate, that is not my case, and this project is just something I'm doing to waste time it wiil not be published anywhere(I guess :D).

 

And if you can solve this by changing 2 lines on a script, I don't think you have to worry about make another array.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...