Interface ISpriteOutlineDataProvider
Data provider that provides the outline data for SpriteRect.
Namespace: UnityEditor.U2D.Sprites
Syntax
public interface ISpriteOutlineDataProvider
Remarks
The outline data is used to tessellate a Sprite's mesh.
Methods
GetOutlines(GUID)
Given a GUID, returns the outline data used for tessellating the SpriteRect.
Declaration
List<Vector2[]> GetOutlines(GUID guid)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEditor.GUID | guid | GUID of the SpriteRect. |
Returns
| Type | Description |
|---|---|
| List<Vector2[]> | Outline data for theSpriteRect. |
GetTessellationDetail(GUID)
Given a GUID, returns the tessellation detail.Tessellation value should be between 0 to 1.
Declaration
float GetTessellationDetail(GUID guid)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEditor.GUID | guid | GUID of the SpriteRect. |
Returns
| Type | Description |
|---|---|
| Single | The tessellation value. |
SetOutlines(GUID, List<Vector2[]>)
Given a GUID, sets the outline data used for tessellating the SpriteRect.
Declaration
void SetOutlines(GUID guid, List<Vector2[]> data)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEditor.GUID | guid | GUID of the SpriteRect. |
| List<Vector2[]> | data | Outline data for theSpriteRect. |
SetTessellationDetail(GUID, Single)
Given a GUID, sets the tessellation detail.Tessellation value should be between 0 to 1.
Declaration
void SetTessellationDetail(GUID guid, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEditor.GUID | guid | GUID of the SpriteRect. |
| Single | value | The tessellation value. |