wiki.sine.space | sinespace

Difference between revisions of "Components/TeleportLocal"

From wiki.sine.space
Jump to: navigation, search
(No collider needed)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Template:Infobox
 +
|above=Teleport Local
 +
|subheader=Component
 +
|image=[[File:Teleportlocal.jpg|400px]]
 +
|caption=Component's Inspector
 +
| label1 = Destination
 +
|  data1 = Drag the destination object here
 +
}}
 +
 +
 
Teleport Local allows you to set up a teleport from one point within your region to another in your region.
 
Teleport Local allows you to set up a teleport from one point within your region to another in your region.
  
1 - Create you teleport pad object and add the component Teleport Local Base Internal to it.
+
Add an object into your hierarchy to be the starting point for your teleport system. Click on this object in the hierarchy, and click on '''Add Component'''.
 +
Search for '''Local Region Teleport''' in the search bar and click on it to add it to the object.  
  
2 - Create a second teleport pad and give it a name, place it in your scene.
+
No need for collider nor trigger : the avatar need to reach the object's "Transform coordinate" to self-activate the teleportation process.
 +
 +
Add another object into your hierarchy to be the end point of your teleport system. Drag this item from your hierarchy into the '''Destination''' box under the Teleport Local component.  
  
3 - From the Hierarchy, drag the second teleport pad object to the 'Destination' field in the Inspector, it will link your object in the scene to the script.
+
When you upload your region, the teleport objects will allow you to travel from where you have placed the first teleport to a spot in your region where you have placed the second teleport.  
  
[[File:TeleportLocalComp.JPG|thumb|TeleportLocal}]]
 
  
Note: On the image, double click it to go to a larger view.
+
{{Component Navbox}}

Latest revision as of 12:07, 3 June 2018


Teleport Local
Component
Teleportlocal.jpg

Component's Inspector

Destination Drag the destination object here


Teleport Local allows you to set up a teleport from one point within your region to another in your region.

Add an object into your hierarchy to be the starting point for your teleport system. Click on this object in the hierarchy, and click on Add Component. Search for Local Region Teleport in the search bar and click on it to add it to the object.

No need for collider nor trigger : the avatar need to reach the object's "Transform coordinate" to self-activate the teleportation process.

Add another object into your hierarchy to be the end point of your teleport system. Drag this item from your hierarchy into the Destination box under the Teleport Local component.

When you upload your region, the teleport objects will allow you to travel from where you have placed the first teleport to a spot in your region where you have placed the second teleport.