Skip to content

Sprite Renderer Flip X To Face Target

Flips a SpriteRenderer horizontally so it faces a target Transform.

Parameters

Parameter Description
SpriteRenderer The SpriteRenderer to flip.
Target The target Transform.
Invert Reverses the facing test if needed.

Notes

  • This changes only the rendered sprite.
  • Use the Transform flip version instead if the full hierarchy needs to face the target.