일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Eclipse
- SSH
- List
- C++
- sql
- pi
- with
- mysql
- conda
- 배열
- pandas
- autovacuum
- dataframe
- awk
- SVN
- expect
- Shader
- python
- DROP
- null
- FIND
- ngui
- ubuntu
- sqlite
- boost
- postgresql
- 쉘
- c++11
- Unity
- if
- Today
- Total
목록ngui (3)
その先にあるもの…
NGUI위에 FX를 렌더링 하면 UI뒤로 FX가 렌더링된다. 렌더링 순서를 바꾸어 주어 FX를 UI위에 렌더링 시킬 수 있다. 1. NGUI Panel의 RenderQ를 바꾸어 준다. RenderQ의 기본 값이 3000번이고 현재 판넬은 3010으로 되어 있다. Start At, Explicit는 렌더큐의 값을 변경할 수 있다. Start At은 2999번으로 지정하면 2999번으로 시작하여 위젯들의 RenderQ가 증가한다.Explicit는 모든 위젯들이 2999번으로 지정된다. 2. Shader의 Tag값 변경 Fx 쉐이더의 Tags { "Queue" = "Transparent" }을 Tags { "Queue" = "Transparent+1" }로 변경한다. Transparent값은 3000이니 UI..
객체를 생성하여 다른 객체의 자식으로 추가 시킬 경우 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; }..
하나의 UI를 끌어서 다른 UI로 올려 놓을 때 UICamera.currentTouch.clickNotification = UICamera.ClickNotification.BasedOnDelta; Ray ray = UICamera.currentCamera.ScreenPointToRay(UICamera.currentTouch.pos); GameObject obj = GameObject.FindWithTag( "tagChrInfo" ); RaycastHit Hit; if( obj.collider.Raycast( ray, out Hit, 10 ) ) { ... }