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.

SpriteRenderer.flipX

Switch to Manual
public bool flipX;

Description

Flips the sprite on the X axis.

Only the rendering is affected. Use negative Transform.scale, if you want to affect all the other components (for example colliders).