- Home /
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.
I'd like to know PlayerSettings.defaultScreenWidth/Height. (I want to rescale images and fonts to be resolution-independent, based on a scale deter$$anonymous$$ed from the default screen size.)
Your answer

Follow this Question
Related Questions
How can I stop the variable values reverting to its default values after being built? 1 Answer
PlayerPrefs Plugin. error CS0103: The name `PlayerSettings' does not exist in the current context 2 Answers
Not instantiating certain prefabs in WebGL build but works fine in Unity Editor 1 Answer
Android gradle build error 0 Answers