steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

Vive Controllers not showing up in build

Open Crycks opened this issue 7 years ago • 6 comments

In Unity Editor everything works perfectly well, no issue. But when building impossible to get my controllers to move and appear... I'm on windows not mac so no issues with that part. Using : Unity 2018.3.0f2 and SteamVr 2.2.0 from the asset store.

So in editor i have no error, and no warnings: image

As for the build: output_log.txt

If more information needed, please ask...

Crycks avatar Mar 17 '19 15:03 Crycks

Thanks for asking, I'm stuck with the same issue :S

PichonDev avatar Mar 20 '19 15:03 PichonDev

Make sure you've copied your bindings to the default bindings in the root of your assets directory. In the binding UI if it says there are local changes you need to hit "Replace Default" in the details of that binding to replace the jsons files. Those should then be copied to your build directory.

keithbradner avatar Mar 29 '19 00:03 keithbradner

On my side, i did put it on the root of my project but should it be there or on the Asset folder ? image

(I'm not on my work computer and this is not the good file, but its just to say that the actions.json was here and i did use the ReplaceDefaultButton. Also in the good project i have quite some other json file here too).

This is what i have in my "Asset/" folder :

image

And this is what is in my "Assets/SteamVR_Input/"

image

PichonDev avatar Mar 29 '19 17:03 PichonDev

Thanks, problem solved for me, json werent in Assets/

Crycks avatar Apr 02 '19 06:04 Crycks

So these go in /Assets/ ?

When an app is built, what folder should they be in, relative to the executable?

chilton avatar Apr 03 '19 18:04 chilton

binding files should go in the root of your project directory and if you didn't create them in the binding ui you may need to manually editor you actions.json to include them (look for the controller type section near the button). If they're in the root of your project they will get copied to builds automatically.

keithbradner avatar May 27 '19 23:05 keithbradner