Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Daniel-mayles · Feb 04, 2016 at 03:46 PM · resolutionscreendisplaymultiple-monitorsdisplays

Windows: Multi Display with two different resolutions

Hi all! I'm currently working on getting multiple displays to work in my project. So far I have got both displays working but because my monitors are different resolutions one screen doesn't draw correctly as you can see in the link below: https://i.gyazo.com/0f4ccbd0b84a6b03f6428131c6ab4105.jpg

But if I change the monitors to be the same resolution it all draws correctly. https://i.gyazo.com/2e23d2f2a40bef73d8622495b939210d.jpg

Anyone got any idea on how to fix this?

Here's the code i'm currently using to get multiple displays working:

 void Start()
     {
         for (int i = 0; i < Display.displays.Length; i++)
         {
             Display.displays[i].Activate(Display.displays[i].systemWidth,
             Display.displays[i].systemHeight, 60);
         }       
         GetComponent<Camera>().targetDisplay = 1;
     }

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by mikelortega · Feb 17, 2016 at 12:38 PM

It's a bug in Unity 5.3, issue id 747475, it will be fixed in Unity 5.4.0. I guess you should check if you have the same problem with the beta.

Issue 747475: The second screen in the multi-display mode gets weird offset when using different screen resolutions.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Stonesand · May 27, 2016 at 06:05 PM 0
Share

This is now fixed in beta 5.4.x. :) Yay it works!

avatar image kingbaggot Stonesand · Dec 04, 2018 at 02:25 PM 0
Share

Hi - I've still got this problem in 2017.3 and 2018.2

multiple displays with different resolutions - have added -multipledisplay into with the command prompt also.

the setparams width and height make no difference ( the offsets do, but it's massively incorrect scale-wise )

I assumed as this was fixed in 5.4.x then it was no longer a problem - do you think I'll have to roll back that far ?

avatar image
1

Answer by imbalance · Feb 17, 2016 at 10:38 AM

Display.displays [i].SetParams (width, height, 0, 0);

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Weightless · May 20, 2020 at 05:12 PM 0
Share

some explanation perhaps?

avatar image tadadosi Weightless · May 20, 2020 at 06:11 PM 0
Share
  1. Writing Display provides access to a display / screen for rendering operations.

  2. Display.displays is the list of the current connected displays.

  3. Display.displays[number] is the display index number that you wanna modify.

  4. Display.displays[i].SetParams (width, height, 0,0) is a method to set rendering size and position on the screen.


It seems like you are just starting out, you should check all the basic stuff about coding with Unity. Play with arrays, lists and create your own methods with variables, it will help you a lot to understand this stuff.

avatar image Weightless tadadosi · May 23, 2020 at 08:22 AM 0
Share

yeah I know what it does, I want to know why this is submitted as an answer.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

40 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

unity Display.displays[].setParams Problem 1 Answer

No resolution change in dual display mode 0 Answers

Pick sensible resolution for FullScreen Mac App 2 Answers

WebGL build has degraded resolution on zoomed-in browsers or systems 0 Answers

Get correct resolution 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges