if you copy and paste his code. make sure on line 4 where it says "public class teleporter : MonoBehaviour" The word teleporter has to be the same name as the file name. everything is case sensitive. so it would be "public class (insert script file name) : MonoBehaviour"
Hi. That would be possible. You could create multiple instances of the script and set the ‘TeleportTo’ and ‘StartTeleporter’ variables to different teleporters.
@Julia Hermerding I think the problem you are facing is that you are using the same tags for all teleporters. You need to create new tags for each pair
For VR/XR add following on top of the script (tested in Unity 2020.3.18f) : using UnityEngine.XR.Interaction.Toolkit; using Unity.XR.CoreUtils; And change: public GameObject Player; to public XROrigin Player; You can assign the teleporter code to XROrigin on your scene, Drag and drop XR Origin to Player slot . Add capsule collider to your XROrigin.
@@emreozdemir5107 I'm also trying to make a teleporter for my university VR project, The XR rig is able to teleport to the destination but any grabbed objects will be dropped in front of the first teleporter. I just want to know if grabbed object still remains in the player's hand for yours?
I checked and it’s still there for me but if you can’t find it it’s this: How to Make Teleporters in Unity In this tutorial I will feature how to make a unity teleporter (3d or 2d) Project: github.com/catty01/Catty01TeleporterTutorial/ Code: pastebin.com/t1820ZYR My Discord Server: discord.gg/2Yjb4H4 SUBSCRIBE tinyurl.com/y2nsyv4o Development Channel (trailers and stuff) : ruclips.net/channel/UC-Q8K17zrEI5ZSz_GJTPRVA
what makes this tutorial so good is that the kid got the british accent! makes the tut 100% better
Thanks!! I'm a computer science student starting with unity and your tutorial helped a lot :)
thank you. this is quick and easy and explained better then anyone i have asked help for before when making unity worlds
We were in gamejam and it helped a lot bro appreciated!!!
This is the best tutorial thank you
thank you
this was so helpful
Thank you a lot for this tutorial
THanks so much it helped alot
broooo we ruined our project again but you saved us again thanks a lot you're the best!!!!
great vid i just subbed
Me: Does everything right
Unity: Nope
if you copy and paste his code. make sure on line 4 where it says "public class teleporter : MonoBehaviour" The word teleporter has to be the same name as the file name. everything is case sensitive. so it would be "public class (insert script file name) : MonoBehaviour"
Legend
How do you teleport somewhere by pressing a certain button while looking at a certain object?
nice video :) thx
Thank you for your help you are very talented and deserve more love keep it up :)
Thanks!
thank u😄🙂
I have a question can I use this multiple times
i subbed
You saved me
Is this good to use for a vrchat world?
In any way i cannot get it to work. Why is that? I even made the GameObject variables to Transform variables
Are you getting any errors?
Hi, quick question: how can I use multiple teleporters in the same scene with this script? What do I have to change in the code for that to work?
Hi. That would be possible. You could create multiple instances of the script and set the ‘TeleportTo’ and ‘StartTeleporter’ variables to different teleporters.
@@CodeRippletelepota.
it doesnt work, can it go through walls?
what is the transparent cube used for?
I am sorry for the late reply. Can you link the timestamp from which the transparent cube was? I havent looked at this project in a long time.
@@CodeRipple i fixed it but thanks
Yo, can you make a tutorial on how to teleport to different scenes?
Let's see if I enjoy this.
edit: yes i will
I don't see why you enjoy watching tutorials but never mind. You do you
somehow i made this whole thing in 17 seconds with just 6 lines of code
AND ITS NOT BUGGY
Hi what should i do if i want to do more teleporters
You could add another pair of scripts
the script is not the same one and i cant seem to get the auto correct thing can you please help
dawg
you have to go to edit, preferences, external, then where it says open file location click that and change it to visual studios
Hey uh, i did everything exactly like you said but it isn’t working
Are you getting any errors in the console?
@@CodeRipple no
Could somebody please tell me how to change the script to use more two-way-teleporters in one scene? I didn´t get it. Please show me a script. thanks
Wouldnt it just be multiple instances of the same script?
@@CodeRipple no this doesn't work. I don't know why but it doesn't.
What have you tried doing? Have you tried creating multiple gameobjects with the scripts?
@Julia Hermerding I think the problem you are facing is that you are using the same tags for all teleporters. You need to create new tags for each pair
oh thanks I was doing that wrong too lol
this is great but the quality is so bad i cannot see the code and its just kiling me
Thanks for the video. Please tell me how teleportation can be carried out in VR/XR?
I believe it would be the same
@@CodeRipple Unfortunately not. Other objects are teleported, but XR Rig is not((
For VR/XR add following on top of the script (tested in Unity 2020.3.18f) :
using UnityEngine.XR.Interaction.Toolkit;
using Unity.XR.CoreUtils;
And change:
public GameObject Player; to public XROrigin Player;
You can assign the teleporter code to XROrigin on your scene, Drag and drop XR Origin to Player slot . Add capsule collider to your XROrigin.
@@emreozdemir5107 I'm also trying to make a teleporter for my university VR project, The XR rig is able to teleport to the destination but any grabbed objects will be dropped in front of the first teleporter. I just want to know if grabbed object still remains in the player's hand for yours?
where did the Description go?
I checked and it’s still there for me but if you can’t find it it’s this:
How to Make Teleporters in Unity
In this tutorial I will feature how to make a unity teleporter (3d or 2d)
Project: github.com/catty01/Catty01TeleporterTutorial/
Code: pastebin.com/t1820ZYR
My Discord Server: discord.gg/2Yjb4H4
SUBSCRIBE tinyurl.com/y2nsyv4o
Development Channel (trailers and stuff) : ruclips.net/channel/UC-Q8K17zrEI5ZSz_GJTPRVA
When will the modded survival come back Catty01?
well, we have to find a time to record it When can you be on? (dm me on discord)
true, yes
I'll do it this weekend or later tomorrow
doesnt work
Hi
Hello
please
please
ACTUALLY EXPLAIN
Hi HoW aRe YoU?
?
@@CodeRipple Hi
@@CodeRipple shuddup man
this tutorial is pretty bad, not straight forward at all. please explain better