x


Menu question

I want to create a menu for my character in which the user can adjust the brightness of the game and also the volume of the sound. I dont have any idea about this since this is the first time ill be dealing to this adjustments. Do you have any tutorial?

more ▼

asked Feb 11, 2012 at 05:33 PM

berting01 gravatar image

berting01
66 157 109 110

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

1 answer: sort voted first

As far as sound goes. Create a slider that adjusts the volume(or whatever you want to do). Then when you hit "Apply" or whatever you want, you use FindObjectsOfType to get all the AudioSources in the scene and change their volume. Alternatively you could adjust the AudioListener.volume instead.

As what comes to brightness/gamma(?) I can't say for sure. What I would do is change the scenes ambient brightness to a more intensive color. Whether that is a good solution or not is up to you to decide.

more ▼

answered Feb 11, 2012 at 05:55 PM

OrangeLightning gravatar image

OrangeLightning
6.6k 126 112 169

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

x8757
x107
x28
x19

asked: Feb 11, 2012 at 05:33 PM

Seen: 592 times

Last Updated: Feb 11, 2012 at 05:55 PM