Sprite Renderer Flip X To Face Direction
Flips a SpriteRenderer on the X axis so it faces a direction.
Parameters
| Parameter | Description |
|---|---|
| SpriteRenderer | The SpriteRenderer to flip. |
| Direction | The direction to face. |
| Invert | Reverses the facing test if needed. |
Notes
- This flips only the sprite, not the entire Transform hierarchy.
- Use this when you want visual facing without affecting colliders or child objects.