x


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

more ▼

asked Jul 17 '11 at 06:37 AM

ZeKurt gravatar image

ZeKurt
1 6 7 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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:

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.

more ▼

answered Jul 17 '11 at 07:07 AM

testure gravatar image

testure
4.2k 20 25 48

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

Jul 17 '11 at 08:32 AM ZeKurt

Yeah, that's the one.

Jul 17 '11 at 03:56 PM testure

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

Jul 20 '11 at 09:40 AM ZeKurt
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x843
x277
x54

asked: Jul 17 '11 at 06:37 AM

Seen: 489 times

Last Updated: Jul 20 '11 at 09:40 AM