-
Notifications
You must be signed in to change notification settings - Fork 82
Example 4.Teleport
ChengNan Yang edited this page Mar 20, 2018
·
2 revisions
This example introduces teleport in 3D space. Users can use Trackpad to teleport in this scene.
- Change the color of the teleport raycast by modify below material of Element 0.
- Add Teleportable script to game object to enable teleport function.
- To teleport using different type of buttons by changing Teleport Button to Trigger/Pad/Grip.
- There is no Teleportable script in Blocks, users cannot teleport when point at Cylinder/Cube/Capsule game object
- To set active or inactive of pointer game object.
- In this example, users press Pad to turn on/off the Right game object.
- To create custom walkable pathway, users can draw a png image and set Read/Write Enabled to true in Advanced settings.
- Note: There will be exception error occurs if it is not set to true.