x


volume Vertical slider how to position?

GUILayout.Label("Volume"); AudioListener.volume = GUILayout.VerticalSlider(AudioListener.volume,0.0,1.0);

i have this script however how do i position it where ever i want.

please help thanx :)

more ▼

asked Aug 16 '10 at 07:30 PM

JackJones gravatar image

JackJones
62 16 18 21

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

1 answer: sort voted first

If you would use GUI instead of GUILayout you'd have to provide the exact screen-space rectangle of the control. You can also position GUI elements using GUILayout using GUILayout.BeginArea which also takes a rectangle in screen-space as one of its parameters.

Just read this: http://unity3d.com/support/documentation/Manual/Game%20Interface%20Elements.html Or for a quick reference this: http://unity3d.com/support/documentation/ScriptReference/GUI.html and this http://unity3d.com/support/documentation/ScriptReference/GUILayout.html and all the other script reference pages as required. I mean...it's all in the manual :D

more ▼

answered Aug 16 '10 at 07:50 PM

matyicsapo gravatar image

matyicsapo
659 12 15 27

(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:

x1024
x74
x50

asked: Aug 16 '10 at 07:30 PM

Seen: 1104 times

Last Updated: Aug 16 '10 at 07:30 PM