private async UniTask Import(string browserUrl) { lastImportedTexture = null; lastImportedMaterial = null; Debug.Assert(!loading); loading = true; // TODO: support other sources Debug.Log($"Importing asset: {browserUrl}"); var id = HdriHavenApi.GetIdFromUrl(browserUrl); var textureUrl = await HdriHavenApi.GetTextureUrlAsync(id, settings.resolution); await DownloadAndImportTexture(textureUrl, id); }
private async UniTask DownloadAndImportHdriHavenTexture(string id) { var textureUrl = await HdriHavenApi.GetTextureUrlAsync(id, settings.resolution); await DownloadAndImportTexture(textureUrl, id); }