No code was used for this. Healthbar works fine until game is built
Fixed it had to set canvas to world view:)