it leader
[Unity3D] Attributes 설명 모음
코딩공부/Unity3D 2015. 12. 12. 13:43

[Unity3D] Attributes 설명 모음ATTRIBUTES알고 있으면 생산, 작업 효율성을 매우 높일 수 있는 attribute들을 unity에서 제공한다. 1) AddComponentMenu 기본적으로 스크립트는 유니티의 Component->Scripts 메뉴에 자동추가된다. 자동추가말고 아무데나 맘대로 넣고 싶으면 AddComponentMenu를 사용한다. [AddComponentMenu("Transform/Follow Transform")] public class FollowTransform : MonoBehaviour { } 2) ContextMenu 스크립트를 우클릭시 뜨는 context menu에 커맨드를 추가할 수 있다. public class ContextTesting : MonoB..