GithubHelp home page GithubHelp logo

denchisoft / unityaspectratiocontroller Goto Github PK

View Code? Open in Web Editor NEW
93.0 93.0 24.0 7.68 MB

Unity script to enforce window aspect ratio for standalone Windows 32/64bit builds.

License: MIT License

C# 22.98% ShaderLab 67.27% HLSL 9.75%

unityaspectratiocontroller's People

Contributors

denchisoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unityaspectratiocontroller's Issues

Flickers with multiple monitors

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.

Unable to switch to full screen after changing size of window

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.