일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- sqlite
- pi
- ngui
- C++
- mysql
- null
- 쉘
- with
- SVN
- Shader
- conda
- postgresql
- if
- c++11
- FIND
- python
- dataframe
- autovacuum
- SSH
- ubuntu
- expect
- awk
- Eclipse
- List
- Unity
- boost
- DROP
- pandas
- sql
- 배열
Archives
- Today
- Total
목록프로그래밍/Unity (43)
その先にあるもの…
Object Drag & Picking
IEnumerator OnMouseDown(){//객체의 스크린좌표를 구하고 Vector3 scrSpace = Camera.main.WorldToScreenPoint(transform.position); Vector3 offset = transform.position - Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, scrSpace.z)); while (Input.GetMouseButton(0)) {//현재 스크린좌표를 구함 Vector3 curScreenSpace = new Vector3( Input.mousePosition.x, Input.mousePosition.y, scrSpace.z)..
프로그래밍/Unity
2013. 6. 4. 17:22