Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public GameObject respawnPrefab; public GameObject respawn; void Start() { if (respawn == null) respawn = GameObject.FindWithTag("Respawn"); Instantiate(respawnPrefab, respawn.transform.position, respawn.transform.rotation) as GameObject; } }
20th Jun 2019, 5:01 AM
Someone
+ 1
Is this what you are asking for?
20th Jun 2019, 5:01 AM
Someone
+ 1
In case you want to apply tags the inspector shows the drop-down menus below every GameObject's name, to apply an existing tag to a GameObject open the tag's drop-down and choose the tag you want to apply
20th Jun 2019, 5:09 AM
Someone
+ 1
No problen
20th Jun 2019, 9:22 AM
Someone
+ 1
Problem*
20th Jun 2019, 9:22 AM
Someone