SpriteRenderer.flipX

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).


Did you find this page useful? Please give it a rating: