ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

When i click an UI button in Unity shutsdown OpenVR and the application #149

Closed dpggit closed 4 years ago

dpggit commented 4 years ago

I use Unity 2018.3 and the last viveinpututility in the unity asset store but just clicking a button shuts down opevr, i receive that message in the Unity console. I am using steamvr and i moved the right and left gameobjects with the component vive role setters to the left and right hands, but somehow the click makes openvr shutdown

chengnay commented 4 years ago

@dpggit Could you provide more detailed information (step by step or screenshots)? or a sample project that can reproduce this error?

dpggit commented 4 years ago

I move each object with the component "vive role setters" inside each the steamvr hand and reset the transform, also move the component "canvas raycast target" to my canvas and disable the default "Graphic raycaster" component in the canvas and delete the rest, then i press a button with a onclick event and then application stops and i receive the openvr shutdown message in unity console

dpggit commented 4 years ago

I didnt want to close this issue

chengnay commented 4 years ago

@dpggit For example by taking the Simple Sample scene from SteamVR plugin, I will add "vive role setters" to controller left and right? Is that correct? image

Your canvas, can I refer to Sphere which is in this scene? And add "canvas raycast target" to Sphere?

dpggit commented 4 years ago

I have finally solved , i had the vive eventsystem script added in other object, i had it duplicated

chengnay commented 4 years ago

I will close this issue, if you encounter issue, please let me know, thanks!