Work in Progress - Having a player label an object in VR

Hello, I was hired to help develop a game. I'm an Interaction Design student and I have been learning Unity on the job. So far, things are going well but I have run into a problem that I don't know how to solve. The game is in Unity 3D. The player will be playing with a VR headset and handhelds.

What I want the player to do is the following steps:

  1. The player needs to pick up/grab a label from the wall

  2. The player needs to walk over to an object while holding the label

  3. The player needs to fit the label into the outline of a box

  4. The program will then run a check...

if the label is correct - the box outline turns GREEN, the label sticks and cannot be removed

if the label is incorrect - the box outline turns RED, and the label does not stick, it goes back into the player's hand. After a minute, the box outline goes back to normal

  1. The game continues until all of the labels have been correctly placed. Once done, I would like a pop-up window that says "Congratulations" or something.

I didn't want to mess up the game I'm developing so I created a small dummy game to test what I want to do. I have a cube, a sphere, a cylinder, and a capsule. I want to create labels for each and go through the steps I outlined above. But I don't know how to create the labels, or the box outlines.

Would I use UI and Canvas?

Would I create cubes above each object as placeholders and create outlines from those?

Where could I find example code that would help me with the checking function?

Many thanks! I'm still very new at this.

13 views and no replies?

Okay...I'm sure there are a number of ways that I can do this. One way would be to have floating boxes above each object that are invisible right? And put labels on them?

What do you think?

Okay what if instead I do this....

Have the player identify the objects using Raycast?

Say the program asks a question - Find the cube - and then the player points to the cube and shoots a ray at it. Because the cube is correct the player scores a point. If the player points to the sphere, it would say "try again"

Would that be easier to do?

Seriously?!?!?

No replies???

I need help!

How do I create labels that a player and grab, hold and stick to things?

Think of this like "Pin the Tail on the Donkey" only in VR