Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Check for Linux player in DisplayManager #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/UI/DisplayManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class DisplayManager
public static int Width => ActiveDisplay.renderingWidth;
public static int Height => ActiveDisplay.renderingHeight;

public static Vector3 MousePosition => Application.isEditor
public static Vector3 MousePosition => Application.isEditor || Application.platform == RuntimePlatform.LinuxPlayer
? InputManager.MousePosition
: Display.RelativeMouseAt(InputManager.MousePosition);

Expand Down