C# Class UnityEditor.Sprites.SpriteUtility

Helper utilities for accessing Sprite data.

Mostra file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Methods

Method Description
CreateSpritePolygonAssetAtPath ( string pathName, int sides ) : void
GenerateOutline ( Texture2D texture, Rect rect, float detail, byte alphaTolerance, bool holeDetection, Vector2 &paths ) : void
GenerateOutlineFromSprite ( Sprite sprite, float detail, byte alphaTolerance, bool holeDetection, Vector2 &paths ) : void
GeneratePolygonOutlineVerticesOfSize ( int sides, int width, int height ) : Vector2[]
GetSpriteIndices ( Sprite sprite, bool getAtlasData ) : ushort[]
GetSpriteMesh ( Sprite sprite, bool getAtlasData ) : Vector2[]
GetSpriteTexture ( Sprite sprite, bool getAtlasData ) : Texture2D
GetSpriteUVs ( Sprite sprite, bool getAtlasData ) : Vector2[]
INTERNAL_CALL_GenerateOutline ( Texture2D texture, Rect &rect, float detail, byte alphaTolerance, bool holeDetection, Vector2 &paths ) : void