x


Show current value of QualitySettings Anti Aliasing in script?

I want to be able to show the current anti alias setting on screen but there is no variable for antialiasing in the QualitySettings class.

Can someone tell me how to show the current antialising value (0X, 2X, 4X, 6X, 16X)?

Also, regarding antialiasing...

It's usually necessary to restart a game to set a new antialias level, but I see in the editor that when I set antialiasing higher or lower it updates immediately.

Will I have to require my end-users to restart if they change the antialias setting or does Unity do it on the fly?

more ▼

asked May 25 '10 at 11:20 PM

Ony gravatar image

Ony
888 29 36 48

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

2 answers: sort voted first

Currently, the only way to change the Anti-aliasing property at runtime is to manually set the QualitySettings.currentLevel property. Calling IncreaseLevel() or DecreaseLevel() will not work as these functions are instantaneous and don't change anti-aliasing settings. However, changing the currentLevel property can take some time, and may lag for a bit, since it does change anti-aliasing settings. The only way to manually set anti-aliasing levels is through the Quality editor in the Unity interface, you can't only set the AA level through scripting (you need to use Unity's quality levels). This is because changing the AA settings in-game is expensive, and can take time.

As for showing the level, just give each setting in the Quality editor a different value, and align those with the values that QualitySettings.currentValue returns.

more ▼

answered Jun 08 '10 at 10:17 PM

qJake gravatar image

qJake
11.6k 43 78 161

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

Are there any changes in antialiasing controlling? I'm facing the same problem now.

more ▼

answered May 22 '12 at 01:53 PM

kirpigiller gravatar image

kirpigiller
16 1 4 5

I still have the same problem as well.

Aug 15 '12 at 03:48 PM CarlEmail
(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:

x5069
x128
x47

asked: May 25 '10 at 11:20 PM

Seen: 3169 times

Last Updated: Aug 15 '12 at 03:48 PM