ドキュメント

Unity Engine

Unity Engine

GetText()

Callback, invoked when the DownloadHandler.text property is accessed.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

protected virtual string GetText()

Returns

Type

Description

stringString to return as the return value of the DownloadHandler.text property.

Remarks

The return value of this method will be returned as the value of the DownloadHandler.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.