http://www.cjonesdev.com/blog/unity-getcomponentlttgt-and-interfaces
'유니티 > Note' 카테고리의 다른 글
| 유니티 2D 경계선 검은색 생길때 처리하는 방법 (0) | 2015.02.04 |
|---|---|
| unity3d Can Transition To Self (0) | 2015.01.14 |
| 인터페이스 관련 글 (0) | 2015.01.10 |
| unity3d Interface 사용 충돌체크 처리. (0) | 2015.01.10 |
| GetComponent 와 SendMesage 속도 비교 (0) | 2015.01.09 |
| visual studio 2013 무료 버전.. (0) | 2015.01.07 |
Trackback 0 And
Comment 0
GetComponent 는 4가지 방법이 있음.
typeof로 검색하는 getComponet가 있음..
typeof로 검색하고 실행 하면됨.
'유니티 > Note' 카테고리의 다른 글
| unity3d Can Transition To Self (0) | 2015.01.14 |
|---|---|
| 인터페이스 관련 글 (0) | 2015.01.10 |
| unity3d Interface 사용 충돌체크 처리. (0) | 2015.01.10 |
| GetComponent 와 SendMesage 속도 비교 (0) | 2015.01.09 |
| visual studio 2013 무료 버전.. (0) | 2015.01.07 |
| bmfont 에서 사용되는 한글 모음 text 파일. (0) | 2015.01.06 |
Trackback 0 And
Comment 0
출처 : http://forum.unity3d.com/threads/which-is-faster-sendmessage-or-getcomponent.103995/
I found that with 2000000 iterations I averaged:
double lastSendMessage; 1.09 - 1.12 seconds
double lastGetComponent; 0.42 - 0.46 seconds
double lastSendMessageVerified; 1.1 - 1.12 seconds
double lastGetComponentVerified; 0.5 - 0.52 seconds
double lastGetComponentVerifiedViaTag; 5.9 - 6.2 seconds
'유니티 > Note' 카테고리의 다른 글
| 인터페이스 관련 글 (0) | 2015.01.10 |
|---|---|
| unity3d Interface 사용 충돌체크 처리. (0) | 2015.01.10 |
| GetComponent 와 SendMesage 속도 비교 (0) | 2015.01.09 |
| visual studio 2013 무료 버전.. (0) | 2015.01.07 |
| bmfont 에서 사용되는 한글 모음 text 파일. (0) | 2015.01.06 |
| unity3d Animator 상태 변이가 일어나는지 여부 판단. (0) | 2015.01.04 |
Trackback 0 And
Comment 0


