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 yusolaifdfer · Jan 14, 2013 at 05:12 PM · androidguiiosplacementpixelinset

GUI placement problems for android.

Sorry if it have been asked before but I was not able to find an answer for this problem -- a proper one that is.

I am using the default FPS player provided in the Standard Mobile Assets. So it have these two pads with which you control the fps player, I can arrange them in the unity and I use the remote to test the game on my phones and it appears exactly as in the screen. But When I made a dev.build I found out the gui(s) were out of their place.

They were supposed to be in the corners (as they appeared in the unity) but in the build they were in the center.

And I can't set a permanent position for them because Androids come in like hundreds of models they should get arranged such that they work universally.

Hope I managed to explain this weird problem.

Comment
Add comment · Show 2
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 yusolaifdfer · Jan 15, 2013 at 02:47 PM 0
Share

This can't be unsolvable. There must be some way to it ?

avatar image yusolaifdfer · Jan 18, 2013 at 06:40 AM 0
Share

I guess I'll make a post on the forums with pics and stuff.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Ashkan_gc · Jan 15, 2013 at 03:13 PM

Not seen that asset but all GUIs using GUITexture and GUIText should be always (or most of the times) in correct positions but for anything inside an OnGUI call you should calculate it yourself and put values in your rect. for example top right of the screen for a 100X100 texture would have a place of new Rect(Screen.width-100,0,100,100)

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 yusolaifdfer · Jan 15, 2013 at 03:38 PM 0
Share

I have been using pixel inset can that be the problem ?

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

9 People are following this question.

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

Related Questions

Using "fonts" that are actually images for a multi-outline effect. 2 Answers

[NGUI] Sprites breaking on switching from Android 0 Answers

size of GUI pics too big 1 Answer

Android/IOS GUI Rescale 0 Answers

Android/IOS First Person Shooter 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