2018년 9월 4일 화요일

GetAllScenePathsFromAssetBundle crash


  1. 백그라운드로 번들을 다운받고 캐싱하는 코드를 만들고 있는 중
  2. 번들 파일을 받고  UnityWebRequest.GetAssetBundle 을 사용하여 캐싱을 하면 에디터에서 100% 크래쉬가 발생(2017.2.1p1)
  3. Editor 로그를 확인하니까 마지막 콜스텍이 GetAllScenePathsFromAssetBundle
  4. 구글링 해 보니 나같은 현상이 발생한다는 애들이 있었음
    issuetracker
  5. We noticed that this bug was related to using WebRequest to cache bundles in background and not accessing the DownloadHandler.assetBundle property before the UnityWebRequest dispose.
  6. UnityWebRequest 를 쓸 때는 꼭 using 을 사용하자 유니티 메뉴얼

댓글 없음:

댓글 쓰기