Sprite Renderer Flip Y To Face Direction
Flips a SpriteRenderer on the Y 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 is useful when only the visible sprite should flip vertically.