Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Oculus VirtualRealitySDK in BuildScripts

Discussion in '5.4 Beta' started by grag0042, May 4, 2016.

  1. grag0042

    grag0042

    Joined:
    Oct 8, 2015
    Posts:
    12
    In 5.4b3 they added support virtualrealitySDK. the documentation shows how this works in the editor. There is no information on how to do this in a build script.

    as mentioned here http://docs.unity3d.com/540/Documentation/Manual/VRDevices-Oculus.html

    after you check the box, there is now a list that needs to be populated. In my build script that is done with

    playersettings.virtualRealitySupported=true

    Simple enough. Oculus will not work as the SDK is not loaded in the build script.
    Where is it done?
     
  2. grag0042

    grag0042

    Joined:
    Oct 8, 2015
    Posts:
    12
    If any one else needs the answer. In ProjectSettings.asset there is a section where you ca list the devices you want per platform in the form of

    Standalone::VR::enabledDevices:
    - Oculus