Just a quick article to help people that are desperate like I was yesterday. Yesterday I was implementing the develop-once-build-everywhere facility of our ImmotionRoom system: it’s a very nice menu where you can choose the headset you’re developing for and then it sets for you all settings, prefab and stuff so that you can build your program for every headset you want without changing a single line of code or modifiying your scene. Cool, isn’t it?
Well, I was getting crazy because I was developing some editor scripts to implement it and then I didn’t manage to find how to change via script that damn Virtual Reality SDKs list that you can see in your Player Settings. Changing the Virtual reality Supported flag is super-easy and documented, but I could not find a way to change the other thing and in PlayerSettings class I couldn’t manage to find a solution. Continue reading “How to change Virtual Reality SDKs list in Unity Build settings (via script)”