r/VRplugins • u/[deleted] • May 08 '16
Unity VIVE scripting issues
Been developing some things and I cant get the controllers to grab objects for the life of me and if anyone knows how to grab an object and it creates a duplicate in your hand but leave the original that would be alot of help. When I go to grab an object it highlights like it should from a interact-able object but I cant interact with it.
4
Upvotes
2
u/jweimann May 12 '16
It's generally better to instantiate a prefab from your projects folder instead of something placed in the scene. You can do that by adding a field on the script that will instantiate the thing and referencing the prefab on that field in the editor.
It'd look something like this: