🛤️

Navigation and Teleportation

In order for the player to move around, your scene needs a Teleport area to be set up.

PaleBlue Trainer is using Unity NavMesh to designate the area for where user can and cannot go.

ℹ️
The NavMesh, while orignally created for character navigation, is a perfect tool for specifying teleport areas. And it’s built-in to Unity!
image
✔️
This page provides you with a basic setup. If you want to have good control of Teleport area and NavMesh usage, you might want to read through Unity NavMesh documentation, including NavMesh Components.

Setting Up Teleportation

The Sample scenes provided with PaleBlue Trainer already have Teleport areas set up with NavMesh.

However, if you want to create a teleport area from scratch, here’s how you do it:

  1. Create an object to walk on, such as Cube or a Plane, and scale it accordingly
  2. Make sure that your object has a collider on it (Box collider or a Plane collider would be a good start)
  3. We have a convenience function to turn any object into a teleport area. Right Click your object, then choose PaleBlue → Teleport Area.
  4. This will add Unity NavMeshSurface and PaleBlue Teleport Area components to this object.
  5. image
  6. Press Bake on the NavMeshSurface component to create the NavMesh.
  7. You’re all set! Now the player can teleport anywhere in the Teleport Area you’ve created.
🆗
You’re done with the introduction! You can go to the main page now to dive into some advanced topics.1️⃣PaleBlue Course Creator 1.1