Build it in the editor
Follow a tutorial to make something work in Play mode, then change the values and see how it behaves.
Make a sliding door
Click a box to make a second box slide up. This shows how an event on one object controls another.
- In a blank scene, choose Shapes → Box twice. Double-click the objects in Hierarchy to name them Button and Door. Move them apart and put both in front of Camera rig. Make the button smaller so you can tell them apart.
- Select Button. In the Inspector, open When clicked and choose + Add an action. Change the action to Slide (move).
- Drag Door from Hierarchy into the action’s Applies to field. Set Slide by to
0, 2, 0and Seconds to1. Keep the door’s rotation at zero so its local Y axis points up. - Press Play and click the button. The door should slide up about two metres. Click again and it should return.
If the button moves, recheck Applies to. For a control that reacts while held, try Push button and its When activated and When deactivated events.
Make a ball bounce
Give a ball a dynamic physics body and a platform a static one.
- Add a Shapes → Box. Make it broad and thin, and place it where the player can see it. In the Inspector, choose + Add modifier → Physics and collision → Physics and set Body to Static.
- Add a Shapes → Sphere. Position it directly above the platform with about two metres of space underneath. Add Physics and keep Body set to Dynamic.
- Press Play. The ball should fall onto the platform. Stop Play, increase Bounciness, and try again to see the difference.
If the sphere falls past the platform, check their positions from above and confirm the box has a static Physics modifier. Collision is the modifier for blocking player movement or marking walkable areas.
Collect items and show a score
- Add a UI → UI panel. Place it in view of the camera and select + Add modifier → Variables → Variable. Set Name to
score, Kind to Number, and Starts at to0. Confirm the name change if prompted. - In the panel’s Items, edit an existing text item or choose + Text. Set the text to
Score: {score}. In Play, the braces display the current value of the variable. - Add a Sphere somewhere visible and select + Add modifier → Mechanics → Collectable. Set Adds to to
score, Amount to1, and Collected by to the option for clicking or pressing the trigger. Set When collected to Disappears. - Press Play. Click the sphere. It should disappear and the panel should show Score: 1. Try duplicating the sphere in the editor to make a second pickup.
For a finished example, play Gem hunt or open it from Projects → Start from a template to inspect its settings.
Move an object along a spline
- Choose Utilities → Spline. Select it and use Place points in the Inspector to lay out a short route in the viewport. Choose Done placing when you’ve added your points.
- Add a Box and select + Add modifier → Mechanics → Spline follow. Drag your spline from Hierarchy into the modifier’s Spline field.
- Set Speed (m/s) to
2and Starts to By itself. Choose how it behaves At the end. - Press Play. The box should start on the line and follow the route. Stop, adjust the points or speed, then play again.
Test motion in Play. The editor viewport shows the object at its edit position. Use a single movement system for this example and leave Physics and Moves along a path off the box.
Connect two scenes
- Use New scene to make a destination scene. Put a brightly coloured shape in view of its Camera rig so you can recognise the destination.
- Return to your first scene. Add Triggers and controls → Trigger zone in front of the player, with space to walk into it. A visible arch or frame can show where the invisible zone begins.
- In the zone’s Inspector, find When someone walks in. Choose + Add an action → Go to another scene and select the destination.
- Press Play in the starting scene. Walk into the zone and check that you can see the destination shape. Check that the destination camera faces the right way.
For a multi-scene example with return routes, open Projects → Portal tour (moving between scenes).
Take your scene to a headset
- Save a
.webvrengineproject backup. Click Publish → Download site (zip) and check the export message for missing files. - Extract the ZIP and put its contents on an HTTPS static host. Open the published link on desktop first and try the interaction you just built.
- In your headset’s browser, open that same URL and choose Enter VR. Try the interaction with the headset controls. For example, point at the sliding door’s button and press the trigger.
- If you need offline play, set it under System → Publishing: offline before exporting. Open the published URL on the headset, download the experience, then reopen that same URL with Wi-Fi off to test it.
See the publishing guide for the required folder layout, or run the headset check if the browser does not offer immersive VR.