새로운 타입의 Asset 을 만들고 싶다.
Project Window 에서 t:XXXXXX 형식으로 쓰고싶다.
아래 코드는 ElgarProfile 이라는 Asset 타입을 생성한다.
[CreateAssetMenu(fileName = "NewAssetElgarProfile", menuName = "MyAsset/New Elgar Profile", order = 0)] public class ElgarProfile : ScriptableObject { public int m_Property; }
Project 창에서 Create 메뉴에서 MyAsset / New Elgar Profile 항목을 선택해서 항목을 만들 수 있다.
Project 창 검색 필드에서 t:ElgarProfile 를 입력해서 찾을 수 있다.