How do make Cubes with an indicator of progress bar of lives in one Canvas

Hello. There are cubes on the stage. Each cube must move individually (selects a random point, and then moves towards it, bypassing all obstacles). Above each cube, a Progress Bar of the number of lives should be displayed. The number of lives for each cube should be different. All Progress Bar number of lives must be drawn in one Canvas (not World Space), without lagging behind the 3D model of the cube. Please help, how can I do it?

Add amount of healhtbars on the canvas. Convert cube coordinates to local canvas coordinates. Assign those coordinates to healthbar. Repeat every late update.