Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- H2O
- Portfolio
- 프래그먼트
- NGINX
- MySQL
- php
- server
- kakao
- techEmpower
- 안드로이드
- 개발자
- ubuntu
- 컴퓨터과학총론
- 구글
- 자바
- java
- C lanuage
- 개발
- caddy
- centOS7
- javascript
- android
- it
- C
- 해석
- 한글
- 번역
- mariadb
- unity
- error
Archives
- Today
- Total
개발모음집
Property collider has been deprecated 본문
에러 : Property collider has been deprecated
1) 수정 전
if(collision.GetComponent<Collider>().CompareTag ("Player")){
StartCoroutine (fall ());
}
2) 수정 후
if(collision.GetComponent<Collider>().CompareTag ("Player")){
StartCoroutine (fall ());
}
참고 : 유니티 공홈
또 다른 에러 발생
MissingComponentException: There is no 'Collider' attached to the "Player" game object, but a script is trying to access it.
You probably need to add a Collider to the game object "Player". Or your script needs to check if the component is attached before using it.
아예 "GetComponent<Collider>()" 메서드로 참고하지 말라는 댓글이 있어서 메서드를 지워보니 해결되었다.
3) 수정 완료 코드
if(collision.CompareTag ("Player")){
StartCoroutine (fall ());
}
참고 : 유니티
'TheRestDevelop' 카테고리의 다른 글
unity로 개발한 android app을 디버깅하는 방법 (0) | 2018.06.01 |
---|---|
Unity 객체의 Animation 파라미터보는 법 (0) | 2018.05.30 |
sprite 타일화 (0) | 2018.05.25 |
Cannot implicitly convert type `UnityEngine.Animator[]' to `UnityEngine.Animator' (0) | 2018.05.24 |
Json으로 데이터를 주고 받을 때 JSON에 불필요한 데이터가 삽입된 경우 (0) | 2018.04.02 |