denchisoft / unityaspectratiocontroller Goto Github PK
View Code? Open in Web Editor NEWUnity script to enforce window aspect ratio for standalone Windows 32/64bit builds.
License: MIT License
Unity script to enforce window aspect ratio for standalone Windows 32/64bit builds.
License: MIT License
Either this library or another?
Thanks for putting together this utility. I haven't solved this yet (it's kind of hard to work on, since it only happens in a built client, iteration time is slow), but I have a laptop at 4k resolution with Display Settings at 200%, and an external monitor at 1080p. When I drag the corners of the window, it renders every other frame during the drag events at the wrong place. One frame will be centered on my monitor, the next is in the right place. After dragging it's in the right place and aspect ratio.
Similarly, if I drag the window to the other monitor, it starts the teleporting/flickering again until I let go and start dragging it again on that monitor. Something stateful going on inside Windows itself, lots of programs have issues going between monitors with scales applied.
A tip: I added an #if UNITY_STANDALONE_WIN just under the class definition and #endif just above the closing curly brace, so it will compile and work on Mac or other platforms without changing the code.
Hello,
Thanks a lot for this project.
However I noticed some issue :
When at the start of my unity application I click on the rectangle icon of the top right hand corner to go to full screen it works.
But when I click on that same rectangle after I have already changed my window resolution, it doesn't allow me to go to full screen anymore.
I am on Windows 10, and Unity 2019.4.15f1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.