Version: 2018.1
Experimental: this API is experimental and might be changed or removed in the future.

ISpriteOutlineDataProvider

interface in UnityEditor.Experimental.U2D

Switch to Manual

Description

Data provider that provides the outline data for SpriteRect.

The outline data is used to tessellate a Sprite's mesh.

Public Functions

GetOutlinesGiven a GUID, returns the outline data used for tessellating the SpriteRect.
GetTessellationDetailGiven a GUID, returns the tessellation detail. Tessellation value should be between 0 to 1.
SetOutlinesGiven a GUID, sets the outline data used for tessellating the SpriteRect.
SetTessellationDetailGiven a GUID, sets the tessellation detail. Tessellation value should be between 0 to 1.