반응형
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 ();
반응형
'unity C#' 카테고리의 다른 글
[Unity] 리스트 재 정렬하기 list resorting (0) | 2015.10.26 |
---|---|
[Unity] C# Threading 사용하기 (0) | 2015.03.04 |
[Unity] sublime 연동하기 (0) | 2015.02.11 |
[Unity] Resources.load text json 파일 불러오기 (0) | 2015.02.04 |
[Unity] 코루틴(Coroutine)의 기본 개념 및 활용 (0) | 2015.02.04 |