docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SpriteDataProviderFactories

    Utility class that collects methods with SpriteDataProviderFactoryAttribute and SpriteDataProviderAssetPathProviderAttribute.

    Inheritance
    object
    SpriteDataProviderFactories
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.U2D.Sprites
    Assembly: Unity.2D.Sprite.Editor.dll
    Syntax
    public class SpriteDataProviderFactories

    Methods

    GetSpriteEditorDataProviderFromObject(Object)

    Given a UnityEngine.Object, determine the ISpriteEditorDataProvider associate with the object by going going through the methods with SpriteDataProviderFactoryAttribute.

    Declaration
    public ISpriteEditorDataProvider GetSpriteEditorDataProviderFromObject(Object obj)
    Parameters
    Type Name Description
    Object obj

    The UnityEngine.Object to query.

    Returns
    Type Description
    ISpriteEditorDataProvider

    The ISpriteEditorDataProvider associated with the object.

    Remarks

    When none of the methods is able to provide ISpriteEditorDataProvider for the object, the method will try to cast the AssetImporter of the object to ISpriteEditorDataProvider.

    Init()

    Initialized and collect methods with SpriteDataProviderFactoryAttribute and SpriteDataProviderAssetPathProviderAttribute.

    Declaration
    public void Init()
    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)