docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISpriteDataProviderFactory<T>

    Interface for providing a ISpriteEditorDataProvider instance.

    Namespace: UnityEditor.U2D.Sprites
    Assembly: Unity.2D.Sprite.Editor.dll
    Syntax
    public interface ISpriteDataProviderFactory<T>
    Type Parameters
    Name Description
    T

    The object type the implemented interface is interested in.

    Methods

    CreateDataProvider(T)

    Implement the method to provide an instance of ISpriteEditorDataProvider for a given object.

    Declaration
    ISpriteEditorDataProvider CreateDataProvider(T obj)
    Parameters
    Type Name Description
    T obj

    The object that requires an instance of ISpriteEditorDataProvider.

    Returns
    Type Description
    ISpriteEditorDataProvider

    An instance of ISpriteEditorDataProvider or null if not supported by the interface.

    In This Article
    Back to top
    Copyright © 2025 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)