Prepare a gradient image. Set the progress bar Sprite’s Type to FILLED, set the ProgressBar Mode to FILLED, and set Total Length to 1:
Set the child Bar Sprite’s Type to FILLED as well:
If these settings disagree, Cocos reports:
1 | ProgressBar non-FILLED mode only works when barSprite's Type is non-FILLED! |