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

Script language

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

SpriteDrawMode

enumeration

Description

SpriteRenderer draw mode.

Enum defining the draw mode for SpriteRenderer.drawMode. This controls how to display the Sprite.

Variables

SimpleDisplays the full sprite.
SlicedThe SpriteRenderer will render the sprite as a 9-slice image where the corners will remain constant and the other sections will scale.
TiledThe SpriteRenderer will render the sprite as a 9-slice image where the corners will remain constant and the other sections will tile.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答