EdtiorCoroutine은 에디터에서 플레이모드가 아닐 때도 실행할 수 있는 코루틴이다.
유니티 에디터 툴을 제작할 때 유용하게 사용할 수 있다.
설치방법은 다음과 같다.
1. Window - PackageManager
2.좌상단 + 버튼 클릭
3.Add package from git URL 클릭
4.com.unity.editorcoroutines@1.0 입력
아래와 같이 사용할 수 있다.
private EditorCoroutine editorCoroutine;
editorCoroutine = EditorCoroutineUtility.StartCoroutine(UploadJsonDatas(), this);
EditorCoroutineUtility.StopCoroutine(editorCoroutine);
'공부 > 개념 & 유용한 내용' 카테고리의 다른 글
유니티 게임 클라이언트 프로그래머 로드맵 (0) | 2023.06.15 |
---|---|
드로우콜의 정의 (0) | 2023.05.11 |
Caching (캐싱) 이란? (0) | 2020.09.25 |
코루틴 최적화 (가비지 덜 생성되게) (1) | 2020.09.24 |
CDN 이란? (0) | 2020.08.31 |