Unity UI for Health Bar
Create the visuals in PhotoShop
- Rounded Rectangle
Import Assets in Unity
- Mesh Type - Full Rect: allow sprite editing
- create an UI image component (container for the sprite)
- set native size
- scale the bar from right to left: change the pivot x to 0 (Rect Transform)
- prevent shrinking corners (squash look): slicing
- In sprite editor
- blue boundary: sprite extraction
- green points: slice points
- Image Type: Sliced
- In sprite editor
- disable generate mip maps