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
0
Question by liangzn · Oct 15, 2012 at 03:09 PM · resolutionscreen

How to set a custom screen resolution, such as 1512 X 1080

Hello, I have a urgent problem.

I am in change with a project which will use a unique resolution----1512 X 1080.

But now I don't know how to set this resolution.

I have used "Screen.SetResolution(1512, 1080, true);". But the resolution restored to 1280 X 720.

Can you tell me how to set custom resolution of output?

Thanks.

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
-1

Answer by Zen_Hap · Nov 26, 2016 at 11:54 AM

Use void FixedUpdate () { Screen.SetResolution(1512, 1080, true); }

Comment
Add comment · Show 1 · 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 BasicallyGames · Feb 25, 2020 at 06:38 PM 2
Share

This is one of the worst pieces of advice I've ever seen here.

avatar image
0

Answer by Random username · Oct 15, 2012 at 03:49 PM

File>Build Settings>Player. You can set up a custom resolution in the Resolution tab there.

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
0

Answer by Eric5h5 · Oct 15, 2012 at 04:35 PM

If you're talking about full-screen, you can't use a screen resolution that doesn't exist on the user's computer. Non-standard custom sizes will only work in windowed mode, and only if they are smaller than the desktop resolution.

Comment
Add comment · Show 2 · 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 liangzn · Oct 25, 2012 at 05:39 AM 0
Share

Hello, I set the default screen resolution to 1512 x 1080 in the player setting and disable the resolution dialogue box from the drop down. In this way, it seems work in the full-screen. But I want to run the application in the windowed mode in 1512 X 1080. But I cannot find 1512 X 1080 in the resolution dialogue. How can you set the custom resolution of windowed mode?

avatar image Random username · Oct 25, 2012 at 03:45 PM 0
Share

Is your screen size larger than 1512 X 1080? Otherwise I believe it will not let you use that custom resolution in windowed mode.

avatar image
0

Answer by Wip3ou7 · Dec 07, 2016 at 09:29 AM

Display.SetRenderingResolution

public void SetRenderingResolution(int w, int h);

https://docs.unity3d.com/ScriptReference/Display.SetRenderingResolution.html

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

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

14 People are following this question.

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

Related Questions

Android Screen Resolution 1 Answer

Set Screen Resolution. 1 Answer

Graphic out of screen 1 Answer

print(Screen.currentResolution); not working 1 Answer

Screen.SetResolution causes screen to turn black (and other problems). Am I doing it right ? 1 Answer


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