Class TextDataProvider | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextDataProvider

    Provides raw text from a local or remote URL.

    Inheritance
    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.InitializeAsync(ResourceManager, String, String)
    ResourceProviderBase.IResourceProvider.BehaviourFlags
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    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
    Type type
    String text

    The text to be converted.

    Returns
    Type Description
    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 © 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