Search Feedback

1
votes

Allow DownloadHandlerScript implementations to set isDone

Networking

-

-

DownloadHandlerScript disallows subclasses from setting the isDone flag when they chose. Because of this, DownloadHandlerScripts are unable to perform any asynchronous work after a download but before they signal completion.

Take, for example, the case where we are downloading raw bytes and which to create an AssetBundle from them using AssetBundle.CreateFromMemoryAsync. We unfortunately, cannot do this in a safe way inside the download handler, because isDone is forced to true synchronously. This renders the CompleteContent() method much less powerful, as all computation has to be done synchronously.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9241)

2D

(233)

Ads

(42)

AI & Navigation

(70)

Analytics

(103)

Animation

(318)

Asset Store

(234)

Assets

(493)

Audio

(158)

Cloud Build

(98)

Collaborate

(33)

Docs & Tutorials

(202)

Editor

(2136)

Everyplay

(13)

Game Performance Reporting

(15)

General

(825)

Graphics

(783)

GUI

(371)

Input

(147)

Licensing

(76)

Networking

(163)

Physics

(346)

Platforms

(407)

Profiling & Optimization

(71)

Runtime

(164)

Scripting

(1030)

Terrain

(151)

WebGL

(132)