teleport-tool-sdk-7
v1.0.2
Published
SDK7 Template scene
Readme
Teleport Tool For Developers - SDK7
Try it out
Installation
npm install [email protected]Purpose
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
Usage Example
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 your
scene.json:"requiredPermissions": [ "ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE" ]
Contributing
- Feel free to contribute to the Teleport Tool!
- Reporting bugs or issues.
- Suggesting new features.
- Materials
- Submitting pull requests for enhancements.
Community
- Join our community for discussions, support, and updates
- Discord: Join the Coding Cave Discord server
