Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSpriteMesh(Sprite, bool)

Returns the generated Sprite mesh positions.
Read time 1 minuteLast updated 12 days ago

Definition

Warning
Deprecated. Use Sprite.vertices API instead. This data is the same for packed and unpacked sprites.
public static Vector2[] GetSpriteMesh(Sprite sprite, bool getAtlasData)

Parameters

sprite


getAtlasData

If Sprite is packed, it is possible to access data as if it was on the atlas texture.

Returns

Type

Description

Vector2[]