Search Feedback

0
votes

Ability to move or/and center the game window via script for desktop platforms

Runtime

-

-

I was switch from fullscreen mode to window and when the game was switched to windowed mode, the window was not centered.
This causes a presentation issue and looks bad. There is a workaround through user32.dll but only works on Windows.

There should be the ability to move or center the game window via script like:

Screen.SetPosition(x, y) should move the game window at x,y
Screen.Center() should move the game window to the screen's center

and should work for platforms that support a windows interface like Windows, Mac and Linux, others should just ignore these functions

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9911)

2D

(260)

Ads

(50)

AI & Navigation

(77)

Analytics

(115)

Animation

(366)

Asset Store

(271)

Assets

(510)

Audio

(169)

Cloud Build

(122)

Collaborate

(45)

Docs & Tutorials

(217)

Editor

(2293)

Everyplay

(13)

Game Performance Reporting

(16)

General

(890)

Graphics

(821)

GUI

(397)

Input

(157)

Licensing

(84)

Networking

(176)

Physics

(362)

Platforms

(427)

Profiling & Optimization

(76)

Runtime

(171)

Scripting

(1097)

Terrain

(164)

WebGL

(138)