공부/개념 & 유용한 내용
에디터 코루틴
ENUM01
2023. 3. 30. 12:09
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);