Transform Flip X To Face Direction
Flips a Transform horizontally using local scale so it faces a Vector2 direction.
Parameters
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Direction | The direction to face. |
| Invert | Reverses the facing test if the art faces the opposite way by default. |
Notes
- This flips the whole hierarchy, not just the visible sprite.
- Use this when weapons, colliders, or child markers also need to flip.