GetText()
Callback, invoked when the _text property is accessed.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
protected virtual string GetText()
Returns
Remarks
The return value of this method will be returned as the value of the _data property.
This method will be invoked on the main thread.
If not overridden, the default behavior of this callback is to call DownloadHandler.GetData(). If DownloadHandler.GetData() returns or an empty string, then this method will return or an empty string (respectively). Otherwise, this method will decode the byte array returned from DownloadHandler.GetData() as a UTF8 string and return the decoded string.
nullnull