x


Access PlayerSettings in a build is it possible, somehow?

Just out of curiosity: is there a way to access the information stored in PlayerSettings in a build of the game?

When using the properties PlayerSettings.productName and PlayerSettings.companyName in a script, the game will (obviously) refuse to compile, since it requires the UnityEditor namespace.

But then again, the PlayerPrefs class accesses that information as well, the question is, of course, how ;)

I would find it convenient to access that data, so I wouldn't have to create my own class where I'd have to add this information again.

more ▼

asked Oct 30 '10 at 03:27 PM

xeophin gravatar image

xeophin
357 8 11 23

I'd like to know PlayerSettings.defaultScreenWidth/Height. (I want to rescale images and fonts to be resolution-independent, based on a scale determined from the default screen size.)

Jan 19 '11 at 12:12 AM yoyo
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x294
x121
x17

asked: Oct 30 '10 at 03:27 PM

Seen: 683 times

Last Updated: Oct 30 '10 at 03:27 PM