Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ZeKurt · Jul 17, 2011 at 06:37 AM · staticimages

Unity 3D: Keeping images in one spot?

So I was making my game. I imported my health gui texture, fixed the x - y axes to look correct in the mini view. But then when I played in the big screen it was in a different spot. I then fixed it up perfectly for the wide/big screen. It looked perfectly fine in the wide screen . But then when I built it and ran it, it was all messed up. I could always fix that. But it worries me that it might be in a different position for people with smaller/bigger screens. So is there any code or anything too keep an image/text in a specific spot in any size? Please help! -Kirtus

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

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by testure · Jul 17, 2011 at 07:07 AM

It's actually a bit of a pain to set up on your first try, because there are a couple of things you have to do:

  • Set your GUI.matrix transform

  • Adjust the offset of GUI controls based on screen scale

My recommendation would be to download the Lerpz tutorial, and find the file that comes with it called GUIHud.js. It should be much more clear how it works once you play around with that for a bit.

Comment
Add comment · Show 3 · 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 ZeKurt · Jul 17, 2011 at 08:32 AM 0
Share

I can't seem to find the GUIhud.js but I found GA$$anonymous$$Ehud.js (Would that be it?)

avatar image testure · Jul 17, 2011 at 03:56 PM 0
Share

Yeah, that's the one.

avatar image ZeKurt · Jul 20, 2011 at 09:40 AM 0
Share

I've experimented, and the textures just don't shot period when i do that..

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Cloud recognition in Vuforia 0 Answers

Add mixing transform to some parent transforms but not specific children? 0 Answers

turn on off particle system 1 Answer

Unity3d Editor (and other tools) will available for linux? 1 Answer

Unity -build for iOS using Xcode - broken animation 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