ViveInputUtility-Unity icon indicating copy to clipboard operation
ViveInputUtility-Unity copied to clipboard

Issue creating BasicGrabbable component at runtime.

Open volpespakka opened this issue 6 years ago • 1 comments

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?

volpespakka avatar Apr 16 '19 08:04 volpespakka

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!

chengnay avatar Apr 18 '19 01:04 chengnay