일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- FIND
- expect
- Eclipse
- ngui
- python
- Unity
- c++11
- autovacuum
- ubuntu
- boost
- sql
- SSH
- Shader
- 쉘
- awk
- DROP
- conda
- pandas
- null
- pi
- sqlite
- dataframe
- SVN
- postgresql
- C++
- List
- 배열
- if
- with
- mysql
Archives
- Today
- Total
その先にあるもの…
NGUITools.AddChild 본문
객체를 생성하여 다른 객체의 자식으로 추가 시킬 경우
static public GameObject AddChild (GameObject parent, GameObject prefab) { GameObject go = GameObject.Instantiate(prefab) as GameObject; if (go != null && parent != null) { Transform t = go.transform; t.parent = parent.transform; t.localPosition = Vector3.zero; t.localRotation = Quaternion.identity; t.localScale = Vector3.one; go.layer = parent.layer; } return go; }
'프로그래밍 > Unity' 카테고리의 다른 글
Animation Read-Only (0) | 2014.02.11 |
---|---|
unity animator event (0) | 2013.12.05 |
Prefab SetActive(false)시 스크립트 접근이 안되는 경우1 (0) | 2013.12.05 |
NGUI 객체 피킹 (0) | 2013.12.05 |
AssetBundle (0) | 2013.10.29 |
Comments