Search Unity

Building Unity3d Project reloads SteamVR plugin

Discussion in 'AR/VR (XR) Discussion' started by IARI, Nov 25, 2016.

  1. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    I'm Building my Unity project with a custom script. The crucial line is the following

    BuildPipeline.BuildPlayer(new string[] {}, path + filename + ".exe",​
    BuildTarget.StandaloneWindows,
    BuildOptions.None);

    If I execute this, Unity will reload the Scene in a way that the SteamVR plugin is reinitialized. Effectively this Plugin asks me to accept some settings with a dialog every time I build the project.

    When I build the Project using the standart Build and Run option (ctrl+B) this does not happen.

    Is there a way to prevent this reloading from happening with the BuildPipeline ?


    Post on Stackoverflow:
    http://stackoverflow.com/questions/40806514/building-unity3d-project-reloads-steamvr-plugin
     
  2. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    With newer versions this also happens to me when Unity recompiles the source automatically.
    I find it hard to bleieve that I'm the only one driven nuts by that
     
  3. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    This should be due to a PostProcess Editor script included with the SteamVR package. You could always scan the SteamVR editor scripts for the one that opens the dialog box and comment it out. Or you could reach out to valve and ask them to change the script.