ViveSoftware / ViveInputUtility-Unity

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

Issue creating BasicGrabbable component at runtime. #112

Open volpespakka opened 5 years ago

volpespakka commented 5 years ago

When i assign at runtime the BasicGrabbable to a object I cannot change the default grab button. I noticed that if i keep the trigger button (default) i can grab the object, but i need to use the grip button, so i change it using grab.grabButton =ColliderEvent.ColliderButtonEventData.InputButton.GripOrHandTrigger;

but then i continue to grab the object using trigger, am i missing something?

chengnay commented 5 years ago

After you assign at runtime to an object, can you try the following method, image After changing "Grab Button" to "Grip Or Hand Trigger", you should be able to grab objects by using Grip button instead.

I tried your code before runtime (in Awake()), it works by changing the value to "Grip Or Hand Trigger". Could you help to check after your code executes, the BasicGrabbable's grab button is changed to "Grip Or Hand Trigger" like the image I attached?

If you are still having problem, please share your project, thanks!