spriteMeshType
SpriteMeshType defines the type of Mesh that TextureImporter generates for a Sprite.
Read time 1 minuteLast updated 21 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public SpriteMeshType spriteMeshType { get; set; }
Remarks
When SpriteMeshType.FullRect is specified, it will generate a rectangle Mesh equal to the user specified Sprite size.
When SpriteMeshType.Tight is specified, it will generate a tight Mesh based on pixel alpha values.