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 Rgalaxy · Jan 21, 2014 at 05:36 PM · camerajavascriptbuild-errorguitexture

Object showing different when Build into Mobile

Heolla ! I've just trying to build my project to see the progress on mobile, i making a gamefor android, and i use my device which is Samsung s3 mini, with Display 480x800. in Unity, i used WVGA Landscape (800x480) but the output was so different.. anybody know why this happening?

its the hp bar, this is the image for comparison.. (i usually used 3:2 Landscape as the original when editing)

this is a 2:3

this is 8000x480

i dont know why this happening, btw, the bar is not a GUI.. it is a GUITexture on game that i change the width and height, also the X and Y in the Inspector, do i need to change it to GUI? or something can fix this thing?

capture.png (301.2 kB)
capture.png (284.5 kB)
Comment
Add comment · Show 14
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 Rgalaxy · Jan 21, 2014 at 05:37 PM 0
Share

alt text

And this is the mobile version.. sorry couldn;t add more attachment into the Question section :)

screenshot_2014-01-22-00-29-13.png (266.2 kB)
avatar image Sirtucx · Jan 21, 2014 at 05:49 PM 0
Share

The reason it is off horizontally on the mobile version is because 800x480 is a 16:9 resolution and not a 3:2. Other than that just make sure to check the height and you should be ok. I can't really do much without seeing how you are positioning each GUITexture (via script or via editor)

avatar image Rgalaxy · Jan 21, 2014 at 05:54 PM 0
Share

i positioning it via editor on Inspector, i don't touch them on my script.. do i need to change it to GUI for the sake of right placing? because i ever read on this Answer section, that GUI is too "expensive" to render?

alt text

capture.png (421.5 kB)
avatar image Sirtucx · Jan 21, 2014 at 06:01 PM 0
Share

If you are doing it via the editor and the only device you are deploying this to is the 800x480 (or 16:9) then set the display in the editor to the device and not 3:2.

avatar image Rgalaxy · Jan 21, 2014 at 06:07 PM 0
Share

yeah, i try to change it to 800x400, and as u can see at above picture, it still slacking off the horizontal.. also i tried to change it to 16:9 as u say, and it comes up far more different from the mobile version.. in this picture, the GUITexture are off of the screen, too far above.. i mean, it it's right, it should comes at least same with what the mobile showing isn't it? alt text

capture.png (271.2 kB)
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

18 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 avatar image avatar image avatar image avatar image

Related Questions

How to draw another camera's view without "Handles"-class? 0 Answers

Instantiated GuiTextures not showing 1 Answer

I need help with camera movement and rotation. 1 Answer

Camera movement(I have no clue how to code) 0 Answers

How can I set a following camera which doesn't rotate with the object 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