[RequireComponent(typeof(_ ))]

_컴포넌트가 없을경우 추가하고 제거할때 경고를 띄움

_GetComponent로 접근해서 사용할것

http://docs.unity3d.com/ScriptReference/RequireComponent.html

'Unity' 카테고리의 다른 글

Animator에서 Trigger 와 Bool의 차이  (0) 2015.05.14
물체가 카메라에 그려지고 있는지 확인하는 함수(OnBecameInvisible)  (0) 2015.05.13
Particle System  (0) 2015.04.14
Invoke Coroutine  (0) 2015.04.14
3D Text outline  (0) 2015.04.13

+ Recent posts