Texture2DToSpriteConverter Class |
Input: Texture2D
Output: Sprite
Namespace: Slash.Unity.DataBind.Foundation.Providers.Converters
The Texture2DToSpriteConverter type exposes the following members.
| Name | Description | |
|---|---|---|
| Texture2DToSpriteConverter | Initializes a new instance of the Texture2DToSpriteConverter class |
| Name | Description | |
|---|---|---|
| Convert |
Called when the specified value should be converted.
(Overrides DataConverterTFrom, TToConvert(TFrom).) |
| Name | Description | |
|---|---|---|
| Pivot |
Pivot of converted sprite.
| |
| Rect |
Specific rectangle from the texture to use.
Only considered if UseTextureRect == false.
| |
| UseTextureRect |
Indicates if the complete texture should be used.
|