How to teleport a GameObject from point A to point B

Teleporting a GameObject in Unity 3D space is not difficult. Here’s some simple C# code that will help you do this. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Teleport : MonoBehaviour { public GameObject ui; public GameObject objToTP; public Transform tpLoc; void Start() { ui.SetActive (false); } void OnTriggerStay (Collider other) { ui.SetActive(true); if […]