Search Issue Tracker
Fixed
Votes
15
Found in
5.3.4f1
Issue ID
786492
Regression
No
Display.displays.Length outputs wrong display count in Editor console
Steps to reproduce:
1. Download and open the attached project
2. Open scene "DisplayTest"
3. Open second Game view
4. Set to display 2
5. Enter Play mode
6. Notice console outputs "Number of Displays: 1".
Notes:
Also Display.displays.Length outputs "Number of Displays: 1", even if Unity editor is running in 2 displays.
Reproduced with: 5.3.0f1, 5.3.4p2, 5.4.0b14.
Comments (6)
-
Sliem001
Sep 09, 2020 08:06
Unity 2020.2.0b1 Beta
Problem still exists.
Its important that we reccive a fix!! -
highlyinteractive
Aug 18, 2020 17:06
I had a go at solving the issue with a native plugin: https://github.com/highlyinteractive/UnityDisplayInfo
It's Mac only at the moment, but I'll try to add a PC version soon
-
highlyinteractive
Aug 13, 2020 14:16
Still an issue in Unity 2020.1.2f1
It would be so useful to at least return the number of system displays in the editor.
-
Roman-Ilyin
Feb 14, 2018 15:57
same issue in 2017.3
-
AlexBarrington
Nov 01, 2017 00:17
This is still an issue in Unity 2017.2!
-
rbmcginnis
May 12, 2017 14:13
Display.displays.Count() also fails. Running a 1080TI graphics card and displaying on three 70" televisions.
Function always returns 1.
Laptop with an external monitor returns 2.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Resolution Note:
This behavior is currently by design, The editor does not have multiple display support.
In the Editor we do not use Displays but GameViews to render. Unfortunately, using GameViews to emulate Displays carries several issues.
Multiple GameViews can be used for a single Display Id and can all have different aspect ratios and resolutions.
To support this requires a refactor of the current Display system and is considered a feature request.