using UnityEngine; using TMPro; public class tabform : MonoBehaviour { public GameObject I1; public GameObject I2; public GameObject I3; public GameObject I4; public GameObject I5; public GameObject I6; string FOCUS; void Update() { if(Get.o2("HIDER","Form").activeInHierarchy){ GameObject inFeil=Get.o2("Form","Inputs"); for(int i=0; i().isFocused) { FOCUS=inFeil.transform.GetChild(i).name; } } if (Input.GetKeyDown(KeyCode.Tab)) { print(FOCUS); if (FOCUS=="Name") { I2.GetComponent().ActivateInputField(); I2.GetComponent().Select(); } else if (FOCUS=="Address") { I3.GetComponent().ActivateInputField(); I3.GetComponent().Select(); } else if (FOCUS=="Email") { I4.GetComponent().ActivateInputField(); I4.GetComponent().Select(); } else if (FOCUS=="Phone") { I5.GetComponent().ActivateInputField(); I5.GetComponent().Select(); } else if (FOCUS=="JobNumber") { I6.GetComponent().ActivateInputField(); I6.GetComponent().Select(); }else if (FOCUS=="Note") { I1.GetComponent().ActivateInputField(); I1.GetComponent().Select(); } } if (Input.GetKeyDown(KeyCode.Tab) && I1 ) { /*if (FOCUS==I9) { I1.ActivateInputField(); I1.Select(); } */ } } } }