- Home /
Texture animated round circular bar
I'm struggling to create a circular bar with an animated texture and a round cap end. What I would like to create is implemented in the Unity game Subnautica so it is possible to be made with unity. So here is the HUD from the game.
The problem is that I don't know how to animate texture with the round end. I can fake it with basic colors but I need it to have animated texture. It is possible to make this using shader because i hadn't tried that. Or are there maybe some assets in the store?
$$anonymous$$y guess is that the easy way is to use UI masks : https://unity3d.com/learn/tutorials/topics/user-interface-ui/ui-mask. A more difficult way would be to have (for example) a camera rig + render texture + custom shader to achieve this
Answer by toddisarockstar · Sep 07, 2018 at 08:49 PM
this could be done easily with multiple gameObjects. you would put the background texture on one object, then you would make the other object with the moving part of the texture on a seperate object that is slightly in front of the first. then simply rotate the second object for movment
Do I need a mask for it? and how the hierarchy would look like? Thanks.
Your answer
Follow this Question
Related Questions
Custom Shader GUI problem 1 Answer
Jaggedness on circular spinner 2 Answers
Strange shader behaviour on UI component 0 Answers
Dirt On Camera (BF3 and Metro Last Light) 1 Answer
need help with GUI healthbar 1 Answer