docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISpriteOutlineDataProvider

    Data provider that provides the outline data for SpriteRect.

    Namespace: UnityEditor.U2D.Sprites
    Assembly: Unity.2D.Sprite.Editor.dll
    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
    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
    GUID guid

    GUID of the SpriteRect.

    Returns
    Type Description
    float

    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
    GUID guid

    GUID of the SpriteRect.

    List<Vector2[]> data

    Outline data for theSpriteRect.

    SetTessellationDetail(GUID, float)

    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
    GUID guid

    GUID of the SpriteRect.

    float value

    The tessellation value.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)