Can you provide a tutorial on creating a health bar with rounded corners using Shader Graph? Also, thank you for the tutorials.
@TechHamlin9 ай бұрын
Glad you like it. There is a "Rounded Polygon" node in shader graph thats easy to use. Try it out, That might solve your ideas!
@erdemaltun36529 ай бұрын
@@TechHamlin I tried using "Rounded Polygon" the node as you suggested, but I couldn't succeed, so I came across your tutorials. If you can show how to use it, I would be grateful thank you.
@TechHamlin9 ай бұрын
No plans atm to make more tutorials about UI. Will keep it in mind though. hope you solve it in the meantime! :-)@@erdemaltun3652
@RoxGame11 ай бұрын
am wondering if it preform better then unity ui
@TechHamlin11 ай бұрын
Yea me too. But i really hope it’s more efficient. It’s probably made directly in hlsl code and custom tailed. I expect unity ui to be be more efficient. But this is good too.
@Masterste11 ай бұрын
@@TechHamlin I plan to impliment this through ECS, with thousounds of health bars : ) I will let u know how it goes thanks for the tutorial
@TechHamlin11 ай бұрын
@@Masterste I find that really interesting, please share. Im curious about the scenario about having a lot of instances going on on the screen at the same time. To make I horizontal just take the y axis input from uv map instead of x :-)
@Masterste11 ай бұрын
@@TechHamlin Ok, so implimented and added a some facing logic to the shader too so the bar allways faces the camera, Enjoy the sea of health bars kzbin.info/www/bejne/oHuqpqKKmMaGp9E , FPS counter top left has around a 10% ish performance hit which is quite fantastic. If i did this through unity UI system it would be cripped at around 1k elements. Some reason I cannot get the background to show, i think maybe its somthing to do with the HDR color im using?
@TechHamlin11 ай бұрын
@@MastersteWow it looks so good! definitely some factorio feeling combined with "they are billions!" :-) looking forward to your twist of the game . But I don't get what you mean with background? you have a transparent part in your health bar that don't shows up transparent? idk, maybe HDR yea could be the problem