Sprite Renderer Flip Y To Face Float Direction
Flips a SpriteRenderer vertically based on a float direction value.
Parameters
| Parameter | Description |
|---|---|
| SpriteRenderer | The SpriteRenderer to flip. |
| Float Direction | Float value used for the facing decision. |
| Invert | Reverses the facing test if needed. |
Notes
- This works well for top-down or vertical gameplay where the sprite alone should flip.