- Home /
Cursor on Multi-Display
I have a multi-display scene.
Each display has it's own camera (and screen space canvas).
When I use Cursor.SetCursor, it only works on the main display.
I tried executing the code from within both OnMouseEnter/OnMouseExit functions of MonoBehaviour,
and
OnPointerEnter/OnPointerExit by implementing the EventSystems interfaces.
In all cases the events fire as expected on all displays.
The SetCursor function only works on Display[0].
If I use the player settings to specify a default cursor, it displays on all displays. It does not respond to the SetCursor function.
I have also tried using the CursorMode.ForceSoftware. That does not have any effect.
This same behavior is true for Cursor.visible = false. The cursor is hidden on the main display only, and visible on all others.
Is there another step that needs to be run before setting the cursor?
Update -
Found Custom Texture2D cursor is not shown in full-screen on secondary monitor in the issue tracker. Which shows it as fixed in 5.3.6. I am still seeing this in 5.6.3p1 on Windows 10.
Your answer
Follow this Question
Related Questions
How to get the current cursor texture? 0 Answers
Why does my cursor image have artifacts in WebGL? 2 Answers
Default Cursor hourglass during app load 2 Answers
Cursor Hotspot 1 Answer