x


Cameras and GUIs

I have a 2D texture that I'm going to use as a buttons "up" state. I'm using EZGUI but I might as well be using a flat plane to display it, it doesn't seem to make any difference.

I can't seem to to get the texture to display at it's original size no matter what I try. Camera distance is only complicating the matter, how far, too close, the field of view etc. Are there magic numbers involved in getting a button to display properly on screen?

I'm using a perspective camera but I had the same issue with an orthographic one, the size slider doesn't make any sense to me. And I saw a post saying that the orthographic cameras field of view is half the height of the viewport? Whaaa?

I'm hella confused on how camera views work in relation to GUI elements, and the unity manual on cameras doesn't exactly help either.

more ▼

asked Nov 18 '10 at 11:56 PM

Jack gravatar image

Jack
10 7 8 9

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

1 answer: sort voted first

I dont know if you use this one but look at the answerthatmaybe what your looking for http://answers.unity3d.com/questions/21244/gui-postion-affacted-when-minimize-the-screen/27855#27855

more ▼

answered Nov 19 '10 at 12:56 AM

Uriel_96 gravatar image

Uriel_96
930 60 70 81

Keeping the positioning of them when the resolution changes is another battle too. Thanks though, for now I'd be happy just getting them not looking like blurry, fuzzy messes.

Nov 19 '10 at 02:41 AM Jack
(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:

x3667
x2978
x1032
x53

asked: Nov 18 '10 at 11:56 PM

Seen: 1578 times

Last Updated: Nov 18 '10 at 11:56 PM