using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; public class SelectGroup : MonoBehaviour { public Transform target; void Update() { if (target != null) { GetComponent().position = Camera.main.WorldToScreenPoint(target.position); } } }