Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityWebRequest.disposeDownloadHandlerOnDispose

public bool disposeDownloadHandlerOnDispose;

Description

If true, any DownloadHandler attached to this UnityWebRequest will have DownloadHandler.Dispose called automatically when UnityWebRequest.Dispose is called.

Default: true.

If no DownloadHandler is attached to this UnityWebRequest, this property has no effect.