Table of Contents

UnityWebRequest

Local Filesystem Requests

When using UnityWebRequest to load from the local filesystem:

Sending requests during destruction

To ensure that UnityWebRequest operations are completed even if the MonoBehaviour is being destroyed (e.g. when the game is exiting), it appears to be safe on at least some platforms (such as Windows) to manually wait in a loop inside OnDestroy for isDone == true on the [UnityWebRequest]AsyncOperation object returned by Send[WebRequest].