• 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

Screen.height

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

LuongCongDan answered

When are Screen.width and Screen.height updated after changing the Screen.orientation value?

Mar 6, '23 screen·orientation·screen.width·screen.height·screen.orientation

1 Reply

0 Votes

avatar image

LuongCongDan answered

Do screen.width and screen.height get updated depending on screen orientation on Android? Wiki

Mar 6, '23 android·orientation·screen.width·screen.height

2 Replies

4 Votes

avatar image

Rayeloy edited

Calculate screen top and bottom postion

Apr 28, '21 camera·player movement·screen size·boundary·screen.height

1 Reply

0 Votes

avatar image

Bill_G241 commented

Touchscreen input: Moving the player using screen.width & screen.height

Nov 28, '20 input·screen.width·screen.height

1 Reply

0 Votes

avatar image

$$anonymous$$ commented

How to set screen boundaries on a moving camera

Jan 9, '20 screen·screentoworldpoint·screen.width·screen.height

1 Reply

0 Votes

avatar image

Mlorenz821 edited

Difference between Screen.height / width and EditorWindow.position.width / height

Nov 11, '19 editor-scripting·editorwindow·screen.width·screen.height

0 Replies

0 Votes

avatar image

H3ll0VR asked

Screen.width/Screen.height not working with multiple resolutions

Jan 23, '19 ui·screen resolution·screen size·screen.width·screen.height

0 Replies

0 Votes

avatar image

VahanSardaryan commented

how can i divide screen to x & y axes for different resolutions

Jan 15, '19 screen resolution·screen size·screen.width·screen.height

1 Reply

0 Votes

avatar image

Reverend-Speed asked

Why is my orthographic camera not resizing according to resolution / aspect?

Jan 1, '19 aspect-ratio·localscale·orthographic camera·screen.width·screen.height

0 Replies

0 Votes

avatar image

Bunny83 commented

Screen height and width confusion

Feb 25, '18 screen·positioning·box·screen.width·screen.height

1 Reply

0 Votes

avatar image

Bunny83 commented

Can't work with screen.width / height

Aug 2, '17 screen·screen.width·screen.height

3 Replies

0 Votes

avatar image

RobertWebb published

Screen.width & height not updated after screen rotation

Mar 14, '17 android·orientation·screen.width·galaxy·screen.height

1 Reply

0 Votes

avatar image

Rajeesh_AR answered

Getting Device Screen Height and width in inches

Aug 19, '16 screen·screen size·screen.width·screen.height

2 Replies

1 Votes

avatar image

kashif789us asked

Capture screenshot of a Particular Area on screen

Jan 18, '16 in Help Room

0 Replies

0 Votes

avatar image

Yury-Habets edited

On Android device Screen.height is returning an incorrect value

Mar 27, '15 android·screen.height

1 Reply

1 Votes

avatar image

xxBarginsxx commented

Can you tell unity to resize the Game window by a button press?

Feb 15, '15 game·screen·resize·screen.width·screen.height

2 Replies

1 Votes

avatar image

Freddy-Mesa commented

How to render gameobject only if in certain portion of view rect?

Sep 2, '14 gameobject·renderer·viewport·conditional·screen.height

2 Replies

0 Votes

avatar image

noobunity commented

How to restrict the player to not go below or above the screen

Aug 22, '14 screen·borders·screen.height

1 Reply

0 Votes

avatar image

JayOhhh commented

Scaling GUIText for all resolutions.

Jun 13, '14 screen.width·screen.height

0 Replies

0 Votes

avatar image

diogm published

Positioning across various resolutions

May 30, '14 objects·positioning·screen.width·screen.height

0 Replies

0 Votes

avatar image

vvkkumar06 asked

How to resize a normal image then apply as a texture for GUI.Box()?

May 27, '14 texture2d·resize·screen.width·screen.height·guibox

0 Replies

0 Votes

avatar image

MattDahEpic edited

Only using related functions, yet still being told that I can't use non GUI functions in OnGUI (Don't call OnGUI)

Apr 25, '14 ongui·guilayout·screen.width·screen.height

1 Reply

0 Votes

avatar image

gfoot commented

How to tell how many lines of text are in my GUI Box when I use wordWrap

Apr 22, '14 c#·gui.box·screen.width·screen.height·wordwrap

1 Reply

0 Votes

avatar image

Borzi commented

Make area adapt to screen size

Oct 13, '13 screen·guilayout·area·screen.width·screen.height

1 Reply

0 Votes

avatar image

vividhelix answered

Android orientation issue

Oct 5, '13 android·landscape·screen.width·screen.height

1 Reply

0 Votes

avatar image

tw1st3d commented

Get Area to Spread Equally with Screen.Height or Screen.Width

Oct 4, '13 guilayout·screen.height·beginarea·new rect

2 Replies

0 Votes

avatar image

el_rolas commented

Screen.Height not getting the correct value

May 31, '13 guitexture·screen.height

0 Replies

0 Votes

avatar image

Guardian2300 commented

Screen.height and Screen.width Issues

May 19, '13 screen resolution·screen.width·screen.height

1 Reply

0 Votes

avatar image

ina commented

Screen.width and Screen.height sometimes flipped for Android

Jan 19, '13 android·screen·landscape·screen.width·screen.height

1 Reply

0 Votes

avatar image

ina edited

Unity 3.5.7 Android Screen returns the wrong value?

Dec 26, '12 android·screen·screen.width·screen.height

0 Replies

0 Votes

  • 1
  • 2
  • ›

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

screen.width screen android screen resolution screen size orientation guilayout c# camera screensize landscape texture2d gui.box resize positioning screen.orientation movement viewport localscale vector3.movetowards aspect-ratio wordwrap align ui ongui


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