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 /
  • Help Room /
avatar image
0
Question by saadminhas101 · May 08, 2016 at 10:11 PM · multiple-monitorsdisplays

Multi Display Not working after scene reload.

Hi,

I am facing a weird issue, I currently have two cameras outputting to two different displays(monitors) by using multi display.

I am activating both of these displays via a script.

     Debug.Log("displays connected: " + Display.displays.Length);
     if (Display.displays.Length > 1)
         Display.displays[1].Activate();
     if (Display.displays.Length > 2)
         Display.displays[2].Activate();

Now the problem is that when ever i reload the scene, the secondary display just freezes up, whereas the primary display works as it should.

Everything works fine in the editor, but the standalone builds are messed up.

Any Solutions to that?

Kind Regards, Saad

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

7 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Shark4 · Nov 17, 2016 at 05:06 PM

I manage to make it work by checking if the display was already activated before activate it. You see I have this script that active display like on the example in the manual: (Display.displays.Length > 1) Display.displays[1].Activate();

But I have this script in all my scene so after I loaded the new scene it active again and it was this that cause the bug.

So I make a static bool that register if the display was activated or not before activate it...

 static bool display1 = false;
 
 void Awake () {
     if (Display.displays.Length > 1 && !display1) {
         Display.displays [1].Activate ();
         display1 = true;
     }
 }

So it's not really a bug, but having it to check by itself when we call the Activate() function to not calling it if it was already activate would be cool.

Comment
Add comment · Show 1 · 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 adellelin · Aug 07, 2017 at 01:37 AM 0
Share

this method works! my second display was getting frozen when I switched between scenes, despite having exactly the same parameters. Thanks Shark4

avatar image
0

Answer by ddsinteractive · May 10, 2016 at 08:15 PM

What do you have your game screen resolution set to? Are you manually overriding it to span the monitors or is it set to native resolution for one monitor?

Comment
Add comment · 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
0

Answer by saadminhas101 · May 11, 2016 at 10:10 AM

It's set to native resolution for each monitor. i have two 1920 * 1080 screens,

everything works fine the first time i launch the application, but as soon as i try to reload a scene, the secondary display just shows a frozen frame from moment just before I reloaded the scene and it stays that way.

Only way to get around is to exit the application and relaunch it.

Comment
Add comment · 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
0

Answer by rahleenos · Jun 11, 2016 at 11:30 PM

I am having the same problem, have you found a solution yet?

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 saadminhas101 · Jun 12, 2016 at 09:56 PM 0
Share

No Unfortunately not,

I am relying on closing down the application and starting it up again, which is not an ideal solution.

I am starting to suspect that this might be a unity bug with multi displays. Hope the official unity folkscan take notice of this issue.

avatar image ddsinteractive · Jun 13, 2016 at 02:47 PM 0
Share

Assu$$anonymous$$g this is a stand alone app.... what you may want to do is clear out the RegEdit preferences for the application, reboot the computer, then relaunch. That was our issue. The RegEdit key was "holding" the screen resolution and kept reverting it on us.

Note, the key will be under the company name as defined in the standalone app player settings.

Reference link: http://answers.unity3d.com/questions/22088/i-cant-find-playerprefs-on-windows.html

avatar image
0

Answer by bhayward_incrowd · Jun 15, 2016 at 11:24 AM

This is a known issue! Please kindly vote on the issue at the link below so that this can get fixed asap:

https://issuetracker.unity3d.com/issues/standalone-camera-doesnt-render-to-second-monitor-when-set-by-script-after-first-rendered-frame

You'll notice that if you connect 3 monitors, the 2nd monitor will suddenly start working, and the 3rd will not. In other words, there is no issue for the first n-1 monitors, but the nth monitor will not work. When the nth monitor freezes you see the residual image of the last-rendered frame from the frame buffer.

Annoyingly, this is not an issue in the current stable release - BUT the current stable release only supports multi-monitors of equal dimensions. On the other hand, the latest beta release supports monitors of different dimensions, but has this bug referenced above!

@ddsinteractive @saadminhas101 @rahleenos

Comment
Add comment · 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
  • 1
  • 2
  • ›

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

61 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 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

Texture2D ReadPixels for specific Display 0 Answers

Why input.mousePosition addapting position with clicked display in editor but not in build? 0 Answers

Multidisplay Player Settings 0 Answers

UI interactables with multi display not working 0 Answers

Multi monitor with different resolutions and orientations? 1 Answer


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