Installation
npm install teleport-tool-sdk-7@1.0.1
The Teleport Tool streamlines the management of multiple teleportation points within your scene, enabling quick activation and deactivation of teleport points. This facilitates efficient testing and debugging, particularly in large, multi-parcel scenes
Customize your teleport names and coordinates to navigate seamlessly within the scene.
// First, we import the TeleportTool
import { TeleportTool } from 'teleport-tool-sdk-7'
// Then, we declare a Teleport Tool entity
const teleportTool = new TeleportTool()
// We set the Teleports (Max 4 slots)
teleportTool.setTeleport1('Teleport 1', Vector3.create(0, 0, 0)) // Add teleport NAME and COORDINATES for slot 1
teleportTool.setTeleport2('Teleport 2', Vector3.create(0, 0, 0)) // Add teleport NAME and COORDINATES for slot 2
teleportTool.setTeleport3('Teleport 3', Vector3.create(0, 0, 0)) // Add teleport NAME and COORDINATES for slot 3
teleportTool.setTeleport4('Teleport 4', Vector3.create(0, 0, 0)) // Add teleport NAME and COORDINATES for slot 4
//Finally, add the teleportTool.uiComponent to your ReactEcsRenderer
ReactEcsRenderer.setUiRenderer(teleportTool.uiComponent)
⚠️ Remember: Don't forget to add the following permissions to yourscene.json
:"requiredPermissions": [ "ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE" ]
- Feel free to contribute to the Teleport Tool!
- Reporting bugs or issues.
- Suggesting new features.
- Materials
- Submitting pull requests for enhancements.
- Join our community for discussions, support, and updates
- Discord: Join the Coding Cave Discord server