docs.unity.cn
    Show / Hide Table of Contents

    Class SpriteDataProviderFactories

    Utility class that collects methods with SpriteDataProviderFactoryAttribute and SpriteDataProviderAssetPathProviderAttribute.

    Inheritance
    Object
    SpriteDataProviderFactories
    Namespace: UnityEditor.U2D.Sprites
    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()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 09 May 2022
    Terms of use