-
Notifications
You must be signed in to change notification settings - Fork 81
Example 4.Teleport
ChengNan Yang edited this page Mar 28, 2018
·
2 revisions
This example introduces teleport in 3D space. Developers 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, developers cannot teleport when point at Cylinder/Cube/Capsule game object
- To set active or inactive of pointer game object.
- In this example, developers press Pad to turn on/off the Right game object.
- To create custom walkable pathway, developers 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.