Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by Facundo · Dec 10, 2010 at 04:49 PM · playermacstandalonewindowresize

How to make standalone player resizable?

I'd like the user to be able to resize the game window when playing on a Mac in windowed mode, by dragging the lower right corner of the window.

So far the applications I build are insensitive to such a gesture. Is there any piece of code that would take care of that?

Help will be much appreciated.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Justin Warner · Dec 10, 2010 at 05:03 PM 0
Share

I'm pretty sure that they can choose it at the beginning of the game... So they can choose then, if you want it to do that during game play, I dont think you'll be able to unless you get the source code... $$anonymous$$aybe someone else knows.

avatar image Facundo · Dec 10, 2010 at 06:01 PM 0
Share

Yes, at the beginning you can choose from a list of predefined dimensions. But that's not quite the behavior a user would expect of a native window, hence my interest in the resizing using the mouse.

avatar image cregox · Dec 08, 2011 at 04:28 PM 0
Share

And now with windows 7 and 8 running on tablets, something in this sense becomes essential! Did you happen to find any solution? - related: http://answers.unity3d.com/questions/148593/create-maximize-window-button.html

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by will_c · Apr 08, 2014 at 10:15 PM

Based on the comments, I'm not sure if the problem is related to retrieving the resolution that it's been changed to or physically enabling the ability to resize the application window. If it's the latter, there is an option in Edit -> Project Settings -> Player under Standalone Player for "Resizable Window" that can be checked to allow this behaviour.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Justin Warner · Dec 09, 2011 at 01:10 AM

http://answers.unity3d.com/questions/37266/how-i-can-change-the-screen-resolution-in-real-tim.html

 Googled: https://www.google.com/search?rlz=1C1GGGE_enUS456US456&gcx=c&sourceid=chrome&ie=UTF-8&q=change+resolution+unity3d#pq=change+resolution+unity3d&hl=en&sugexp=pfwe&cp=18&gs_id=4&xhr=t&q=change+resolution+unity3d&tok=Q3nzD99pqLMTOrC7Ly1vsw&pf=p&sclient=psy-ab&rlz=1C1GGGE_enUS456US456&source=hp&pbx=1&oq=change+resolution++unity3d&aq=0j&aqi=g-j1&aql=f&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&fp=c68993b7b411a584&biw=1777&bih=976

Enjoy.

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cregox · Dec 09, 2011 at 07:42 PM 0
Share

Now I'm only missing a way to identify the screen resolution has changed, because Screen.currentResolution is not working on windows 7.

avatar image Justin Warner · Dec 09, 2011 at 08:12 PM 0
Share

No need to use currentResolution, just use Screen.width and Screen.height.

avatar image cregox · Dec 09, 2011 at 08:13 PM 0
Share

I sure tried both... With no success. :(

avatar image Justin Warner · Dec 09, 2011 at 08:15 PM 0
Share

Try print(Screen.width); What's it say in the log?

avatar image cregox · Dec 09, 2011 at 08:17 PM 0
Share

Screen.width brings the window area size (not actual window size) while currentResolution is the actual screen size. You can actually see the error if you try on your windows, in case you're using one. Just try changing the window orientation while running an EXE compiled and you'll see none identify the resolution change.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Force aspect ratio of window (standalone Windows) 1 Answer

Force the minimum resolution of the resizable window? 0 Answers

Is it possible to make custom OSX Player windows in Unity? 0 Answers

RenderTexture contents lost on Standalone Window resize 1 Answer

[OSX] Cannot tab out using Cmd+Tab - Solution? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges