Have an object be disable in the view layer but still cast a shadow

Hello!

My camera is attached to my character’s head in my 3D game, so I made the head a separate mesh that is disabled in the view layer that the camera can see

Issue is that now, you can see in shadows cast by the player, that they have no head

Any way to fix that?

Set its GeometryInstance3D.cast_shadow to Shadows Only