Class TextDataProvider
Provides text from a local or remote URL
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Syntax
public class TextDataProvider : RawDataProvider, IResourceProvider, IInitializableObject
Methods
Convert<TObject>(String)
Method to convert the text into the object type requested. Usually the text contains a JSON formatted serialized object.
Declaration
public override TObject Convert<TObject>(string text)
where TObject : class
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | The text to be converted. |
Returns
| Type | Description |
|---|---|
| TObject | The text string is returned without conversion. |
Type Parameters
| Name | Description |
|---|---|
| TObject | The object type to convert the text to. |