Class SpriteDataProviderFactories
Utility class that collects methods with SpriteDataProviderFactoryAttribute and SpriteDataProviderAssetPathProviderAttribute.
Inherited Members
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()