Hi all, I am completely new to unity and Vuforia, just start my learning a week a ago with some wonderful tutorial. I want to make a simple project for mobile device. it contains some game objects recognized by the AR camera and the player need to use the tools already in the GUI inventory to pick up and interact with it, which is done by dragging the specific tool outside GUI inventory and collide with the gameobject shown by the AR camera. For example, to drag a small tube in the inventory to pick up (via collider) blood from a splash, then the new gameobject instantiate to a tube with blood inside. I have created the layout of GUI inventory with some prefab tools, and I have tested the vuforia AR camera could show the blood on the floor successfully following tutorials online.
But the question is how to write a script that drag the tool outside the inventory and collide with the gameobject shown by AR camera? Can some help me wit the script?
Btw I know how to change the gameobject and collect it back to inventory, I just stuck at the dragging and colliding part. Thank you!!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Inventory Drop Function Problem
How to start an inventory system?
GUI focus control - inventory system issue
Toggle Inventory script
Best way to implement RPG Inventory System (w/ Sized Items)