Progress Bar with Items - a component that differs from Progress Bar in that it uses separate images on which the sprite changes depending on the state.
Canvas Group - link to canvas group required for UI Element.
Items - links to images of sprites that will be replaced.
Unlocked Item Icon - a sprite that will be shown if the value is greater than or equal to the image ordinal number.
Locked Item Icon - a sprite that will be shown if the value is less to the image ordinal number.
Value - current progress bar value.
QUESTIONS:
1. How to change value? - Get a progress bar link in any way you like and use SetProgress();
[SerializeField] private ProgressBarWithItems _progressBar;
private void Start()
{
//SetProgress(value);
_progressBar.SetProgress(5);
}
2. How to reset value? - Use ResetValues();
[SerializeField] private ProgressBarWithItems _progressBar;
private void Start()
{
_progressBar.ResetValues();
}