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