Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration DrawMode

Drawing mode used by Sprite2DRendererOptions. When a sprite size is manually set, the drawing mode specifies how the sprite fills the area.

Index

Enumeration members

AdaptiveTiling

AdaptiveTiling: = 1

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

ContinuousTiling: = 0

Tiles the sprite continuously if the area is larger than the source sprite, or cuts it off it is smaller.

Stretch

Stretch: = 2

Scale the sprite to fill the new area.

Generated using TypeDoc