You can also disable lighting on the materials:
healthBarMaterial.disableLighting = true;
healthBarContainerMaterial.disableLighting = true;
light.excludedMeshes = [healthBar,healthBarContainer]
You will get the same shader code in the end, so it’s up to you to choose one method over the other (it’s sligthly easier to use the
disableLighting property if you have multiple lights in your scene, as you won’t need to exclude your objects from all the lights, or if you have numerous objects you want to exclude from lighting that share the same material).