Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /nfs/c12/h04/mnt/221819/domains/unity3dsupport.com/html/wp-content/plugins/siteorigin-panels/inc/styles-admin.php on line 390
September 2017 – State Trivia

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 […]