Class TextDataProvider | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class TextDataProvider

    Provides raw text from a local or remote URL.

    Inheritance
    System.Object
    ResourceProviderBase
    TextDataProvider
    JsonAssetProvider
    Inherited Members
    ResourceProviderBase.m_ProviderId
    ResourceProviderBase.m_BehaviourFlags
    ResourceProviderBase.ProviderId
    ResourceProviderBase.Initialize(String, String)
    ResourceProviderBase.CanProvide(Type, IResourceLocation)
    ResourceProviderBase.ToString()
    ResourceProviderBase.Release(IResourceLocation, Object)
    ResourceProviderBase.GetDefaultType(IResourceLocation)
    ResourceProviderBase.IResourceProvider.BehaviourFlags
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public class TextDataProvider : ResourceProviderBase, IResourceProvider, IInitializableObject

    Properties

    IgnoreFailures

    Controls whether errors are logged - this is disabled when trying to load from the local cache since failures are expected

    Declaration
    public bool IgnoreFailures { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Convert(Type, String)

    Method to convert the text into the object type requested. Usually the text contains a JSON formatted serialized object.

    Declaration
    public virtual object Convert(Type type, string text)
    Parameters
    Type Name Description
    System.Type type
    System.String text

    The text to be converted.

    Returns
    Type Description
    System.Object

    The converted object.

    Provide(ProvideHandle)

    Provides raw text data from the location.

    Declaration
    public override void Provide(ProvideHandle provideHandle)
    Parameters
    Type Name Description
    ProvideHandle provideHandle
    Overrides
    ResourceProviderBase.Provide(ProvideHandle)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX