docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BinaryDataProvider

    Provides raw text from a local or remote URL.

    Inheritance
    object
    ResourceProviderBase
    BinaryDataProvider
    Implements
    IResourceProvider
    IInitializableObject
    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.CreateCacheKeyForLocation(ResourceManager, IResourceLocation, Type)
    ResourceProviderBase.SceneDependencyResourceType
    ResourceProviderBase.InitializeAsync(ResourceManager, string, string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Assembly: Unity.ResourceManager.dll
    Syntax
    public class BinaryDataProvider : ResourceProviderBase, IResourceProvider, IInitializableObject

    Fields

    Name Description
    kBinaryAssetProviderBaseId

    Base namespace-qualified name for BinaryAssetProvider. Combine with a serialization adapter's type name to form a unique ProviderId per adapter.

    Properties

    Name Description
    IgnoreFailures

    Controls whether errors are logged. Disabled when loading from the local cache since failures are expected in that context.

    Methods

    Name Description
    Convert(Type, byte[])

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

    Provide(ProvideHandle)

    Provides raw binary data from the location.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)