Interface ISpriteDataProviderFactory<T>
Interface for providing a ISpriteEditorDataProvider instance.
Namespace: UnityEditor.U2D.Sprites
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. |