axinc-ai / ailia-models-unity

Unity version of ailia models repository
45 stars 4 forks source link

Implement download progress bar of model #5

Closed kyakuno closed 4 years ago

kyakuno commented 4 years ago

Display download progress using text or slider

kyakuno commented 4 years ago

Implement here. https://github.com/axinc-ai/ailia-models-unity/blob/master/Assets/AXIP/AILIA-MODELS/common/Scripts/AiliaDownload.cs

ri-shinpo commented 4 years ago

sliderの場合では、ちゃんとしたUISilderがいいですか?それともUnityの標準Editor機能のProgressBarでもよろしいですか? image

ri-shinpo commented 4 years ago

AiliaDownloadについて、UnityのWWW機能は2018.3から非推奨になったので、UnityWebRequestに変えようと思っています。

kyakuno commented 4 years ago

UnityWebRequestへの変更、よろしくお願いします。sliderはUnity標準のsliderで問題ないですが、アプリとして出力した場合にも動作する必要があるため、Editorではなく、Runtimeでも使用できるuGUIのsliderを使用してください。

ri-shinpo commented 4 years ago

uGUI用の既存のSliderBarアセットは仕様はありますか?

kyakuno commented 4 years ago

特にアセットはありませんので、フラットUIな見た目になるように単色の画像などをご利用ください。

ri-shinpo commented 4 years ago

AiliaDownloadにUIアセットのrefを保持したいため、下記の画像のようにAiliaDownloaderを作ろうかと思います。そしてダウンロード用のURLをまとめて定数化したいと思います。 Annotation 2020-05-11 142738 Annotation 2020-05-11 141821