- Home /
Slider UI rotate image/sprite
Hi, so I want to add a slider to my UI in my game. For the background, I have a sprite, which is vertically arranged. I tried to rotate it, but it doesn't rotate the sprite itself, just the background of the slider so it looks like this:
I hope you can understand this, feel free to ask if you have any questions.
Answer by Koyemsi · May 11, 2021 at 10:56 AM
Did you set the slider's direction to vertical ? In your Slider component there's a field called Direction, which is set by default to "Left to Right". If your slider is vertical you'll have to set it to "Top to Bottom" or "Bottom to Top". Hope that helps.
You're welcome. I remember having searched for a while before noticing this feature ;)
Your answer
Follow this Question
Related Questions
Change UI GUI Image Sprite at runtime .. Unity 5 .. js 1 Answer
Rotating a Sprite to face mouse / target? 2 Answers
Rotating Gameobject with (hidden) UI slider and Inputfield both positive and negativ 2 Answers
Weird UI.image with not sprite, chooses random sprite based on position. 2 Answers
Sprite import problem? 1 Answer