Enum DrawMode
Drawing mode used by Sprite2DRendererOptions When a sprite size is manually set, the drawing mode specifies how the sprite fills the area.
Namespace: Unity.Tiny.Core2D
Syntax
[IdAlias("a7ae2ef1f120627af99607cbecca330e")]
public enum DrawMode
Fields
Name | Description |
---|---|
AdaptiveTiling | Adaptively tiles the sprite. When the target area is smaller, the sprite is scaled down, like in Stretch mode. If the area is larger a combination of scaling and tiling is used, that minimizes scaling but always tiles complete tiles. |
ContinuousTiling | Tiles the sprite continuously if the area is larger than the source sprite, or cuts it off it is smaller. |
Stretch | Scale the sprite to fill the new area. |