VR Builder - RosoVRgarden/VRgarden-tutorials GitHub Wiki

VRgarden tutorials: VR Builder

VR Builder is a Unity asset that allows you to easily prototype VR interaction for training or other industrial purposes. It can also be used creatively in order to reduce the amount of code necessary in your application. An example is getting a key (a grabable object), put the key in a keyhole and open the door automatically. In this tutorial, you will learn the basics so you can use this tool and also decide whether it can do what you need.<

  1. First. Use the package manager to instal VR Builder and, optionally, another package called States and Data that is available in the VRgarden lab.

  1. Once installed, VR Builder can help you setup your project then your scene. Remember that you are using OpenXR. You can either do it at the beginning and open the demo to look at the various possibilities that the package offers. To find the menu again, go to Tools > Project Setup Wizard.

  2. After looking at the demo, you can setup your own scene using Tools > Scene Setup Wizard. All parameters are good, click on the Finish button. Then, in process editor, right click, select new and Step. Select the step in the editor and choose a Behaviors / Transitions / Unlocked Objects. Have a look at the possibilities:


Behaviors

Animation

Move Object


Scale Object

Environment

Disable Component


Disable Objects


Enable Component


Enable Objects


Start Particle


Stop Particle


Unsnap Object

Guidance

Highlight Object


Play Audio File


Play Text-to-Speech


Spawn Confetti

State and Date (optional)

Set Value / Trigger ...

Utility 

Behaviors Sequence


Delay


Set Parent


Transitions

Environment

Move Object in Collider


Object Nearby

Interaction

Grab Object


Release Object


Snap Object


Touch Object


Use Object

State and Date (optional)

Check / Compare

Utility

Timeout

VR User

Teleport

  1. The most important are the Transitions. In the example above, to grab a key, it’s an Interaction > Grab Object. You can then drag the model of your key from the hierarchy into the menu. If the key doesn’t have an XR grabable, you can add one using Fix it.

  1. The next step is to create the area where the key will need to be brought. It’s also a transition, this time it’s a Snap Object transition where you have the object (the Key) and a place to snap it (Snap Zone). You can create a Snap Zone by going to the object in the hierarchy and create a Snap Zone. You can then move the Snap Zone where you need it (the key hole in this situation). 

  1. To open a door, it’s a behaviors. Choose the Animation > Move Object. In order to move the object, drag the object into the object field and create an empty object with the transform that carries the value of rotation. Then add the time of the animation (2 s).

  1. There could be other objects in the room to grab. If the user makes a mistake, you can tell them by creating an alternative path.

Making a mistake can trigger an audio and highlight the correct object very training style, not recommended).

  1. It doesn’t end with one task, you can setup other tasks after this one is finished by creating a new chapter (left) and linking the end of task to that new chapter (process editor)

  1. User manual: https://mindport-gmbh.github.io/VR-Builder-Documentation/articles/pro/animations/animate-transform-behavior.html
⚠️ **GitHub.com Fallback** ⚠️