Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SpriteDrawMode.Tiled

Description

The SpriteRenderer will render the sprite as a 9-slice image where the corners will remain constant and the other sections will tile.

In this draw mode, the corners will remain unscaled while the other sections will be repeated instead of stretched. It uses the Sprite.border value to determine how each part (border and center) should be tiled.