- Home /
Oculus virtual reality sdk in build script in Unity 5.4b
In Unity 5.4b3 they added
VR SDK list is per build-target.
Dependencies (dlls, etc) will be copied to the build for every sdk in the list.
when building a unity project via a build script, previous all that was needed was,
playersettings.virtualRealitySettings=true
to enable oculus on a windows build.
Now they have added a list that is visible in the editor. but the Documentation has no information on how to set this in a build script.
The Unity Documentation is here but as per normal, completly useless.
Answer by grag0042 · Jun 10, 2016 at 03:18 PM
In the projectsetting.asset file there is a section where you can list the VR devices you need per platform in the format
Standalone::VR::enabledDevices:
followed by a list of the VR devices
- Oculus
Answer by edwon · Dec 07, 2016 at 08:36 PM
@grag0042 I need to change the virtual reality sdk settings through code as well. How can I modify the asset file directly if I can't do it through the PlayerSettings API?
@edwon I have not found a way to do it in a build script directly. sorry. Currently i am using python to call the build script, i use python to change lines in settings file for some things that i can not find how to do with Unity's api tools
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Building Unity from Batch file using Node.js 0 Answers
Game Perfect in Unity 5 but not in Android Device 0 Answers
Unity 5.0.1 freezes on build - light transport 5 Answers
Failed to re-package resources using everyplay plugin and google play plugin for leaderboard 0 Answers