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
1
Question by byerdelen · Jun 08, 2012 at 05:21 AM · resolutionscreenstandalonefixedwindowed

Standalone fullscreen-fixed size

Hi, I have a different necessity to have the fixed 1024*768 resolution in desktop because my game is ported from iPad and the GUI change work I have to do is huge. What I want to do is to have a 1024*768 screen like windowed one but I want it to work like fullscreen so the background can be a color-black whatever so the user won't change it's place or smt. In this way, I will have my app in the center of the screen all the time. Is it possible inside Unity or can I write some extra code to make it happen? Thanks

Comment
Add comment · Show 9
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 byerdelen · Jun 08, 2012 at 08:20 AM 0
Share

Yes, I need it for the $$anonymous$$ac Appstore exactly. And what I want is exactly the same with pad racer. I tried to play with normalized rect settings of the camera but gave bad results. I have two problems now: 1. To make the 1024*768 app put at the center of the screen no matter what current resolution of the screen. 2. To have an image back like pad-racer. I can give any color I want with the GL.color setting but not an image. Thanks for all advises

avatar image Eric5h5 · Jun 08, 2012 at 08:36 AM 0
Share

You should really make the game resolution-independent; forcing games into windows is kind of bad form, and computer users tend not to appreciate shoddy iOS ports. Especially since some screens can't do a 1024x768 window at all, such as the 11" $$anonymous$$acBook Air...it has a max vertical resolution of 768, but you have to subtract space for the menu and title bars. I know you said the work to change the GUI would be huge, but that's why it's important to design it to be resolution-independent from the beginning.

avatar image Fattie · Jun 08, 2012 at 08:40 AM 0
Share

Eric, on the 11" - most games run full-screen, so sure it fits an iPad2 resolution.

avatar image byerdelen · Jun 08, 2012 at 08:52 AM 0
Share

Yes Eric, you have right but this project started as only iphone-iPad project so I haven't prepared it for huge screens such as I$$anonymous$$acs and now client wants to test the $$anonymous$$ac App-Store feedbacks so according to that update will be resolution-independent. The project is the biggest and most detailed 3d gun app in appstore so it has more than 10000 lines of only GUI code I need to make implementation. As Fattie said below, I want to make a pre render type stylish frame under the app. And I want to centralize the app for now. Till now, I made this code with the :

function Start(){ // do something like: vector.x=Screen.currentResolution.width/1024; vector.y=Screen.currentResolution.height/768; }

function OnPreRender () { and implement it like that: GL.Viewport(Rect(vectora.x,vectora.y,vector.x,vector.y));}

Eric, can you give me please an example code to draw a texture on prerender that will be under the app if that kind of method is possible?

avatar image Eric5h5 · Jun 08, 2012 at 08:58 AM 0
Share

it has more than 10000 lines of only GUI code

Ouch. So, by "huge" you actually meant huge. ;) I don't really know what to suggest at this point...I always make GUIs resolution-independent from the beginning; if you do that it's not really any harder to make and saves huge amounts of bother later, but I guess it's too late for that.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mac Retina Support Standalone OSX 1 Answer

Fixed to the screen GUI ? 1 Answer

[Help] FullScreenMode - what is it? 0 Answers

Screen.SetResolution doesn't work when the game starts windowed? 0 Answers

Fixed Screen Resolution 2 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