Class TextDataProvider | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextDataProvider

    Provides text from a local or remote URL

    Inheritance
    System.Object
    ResourceProviderBase
    RawDataProvider
    TextDataProvider
    Inherited Members
    RawDataProvider.IgnoreFailures
    RawDataProvider.LoadAsText
    RawDataProvider.Provide<TObject>(IResourceLocation, IList<Object>)
    ResourceProviderBase.m_ProviderId
    ResourceProviderBase.m_BehaviourFlags
    ResourceProviderBase.ProviderId
    ResourceProviderBase.Initialize(String, String)
    ResourceProviderBase.CanProvide<TObject>(IResourceLocation)
    ResourceProviderBase.ToString()
    ResourceProviderBase.Release(IResourceLocation, Object)
    ResourceProviderBase.IResourceProvider.BehaviourFlags
    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.

    Overrides
    RawDataProvider.Convert<TObject>(String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023