반응형

 GameObject NotiBtn = new GameObject (); 
 NotiBtn.transform.SetParent(GameObject.Find ("Guest1/Home/Notification/NotiMask").transform); 
 NotiBtn.name = "NotiBtn---"; 
 NotiBtn.AddComponent (); 
 NotiBtn.GetComponent ().anchorMin = new Vector2 (0f,1f); 
 NotiBtn.GetComponent ().anchorMax = new Vector2 (0f,1f); 
 NotiBtn.GetComponent ().pivot = new Vector2 (0f,1f); 
 NotiBtn.transform.localPosition = new Vector3 (0f,0f,0f); 
 NotiBtn.AddComponent (); 
반응형

+ Recent posts