Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetText()

Callback, invoked when the _text property is accessed.
Read time 1 minuteLast updated 6 days ago

Definition

protected virtual string GetText()

Returns

Type

Description

stringString to return as the return value of the _text property.

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
null
or an empty string, then this method will return
null
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.