- Home /
Question by
BlazerLazer · Apr 18, 2018 at 10:44 PM ·
transformspritesprites
how to make a sprite face your character on one axis?
I have an enemy prefab but I haven't made a script yet because I don't know how it works. I want the enemy to face either left or right, depending on if the player is to the left or right of it. is there a way to set the sprite of the prefab when the player is to the left and right of it?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612161050im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Need help with sprite rotation 0 Answers
How to change spriterenderer to everyone with RPC 0 Answers
How to crop or mask a sprite to a specific shape? 1 Answer
Sprites reshape unexpectedly 0 Answers