using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; public class DIMS : MonoBehaviour { public static List GetFromSelection() { List D = new() { GetFromLetter("A"), GetFromLetter("B"), GetFromLetter("C"), GetFromLetter("D"), GetFromLetter("E"), GetFromLetter("F"), GetFromLetter("K"), };//Dimensions return D; } public static string GetFromLetter(string Letter) { // print("----GetFromSelection()----"+Letter); //Check if Fix,Variable or Fix variable string code=""; string path = "CABINETpnl/SHOWSELECTION/DIMS"; if(Get.o2(path,"Fix"+Letter).activeInHierarchy){ GameObject I =Get.o2(path,"Fix"+Letter); code+=DOIT.CSs(I.GetComponent().text); } if(Get.o2(path,"InputField"+Letter).activeInHierarchy){ GameObject I =Get.o2(path,"InputField"+Letter); code+=DOIT.CSs(I.transform.Find("min").GetComponent().text)+"_";//min code+=DOIT.CSs(I.GetComponent().text)+"_"; code+=DOIT.CSs(I.transform.Find("max").GetComponent().text);//max } if(Get.o2(path,"Dropdown"+Letter).activeInHierarchy){ GameObject I =Get.o2(path,"Dropdown"+Letter); } //print("code ==="+code); return code; } }