The way I wanted to do this was by animating the shadow caster 2D shape as the door opens, so as it opens the shadowbox shape updates accordingly, this doesn’t seem to work as the shape isn’t changeable per frame, like a collider. I tried creating an object with the component for each step of the animation and changing its shape there, then enabling the one for that frame and disabling the others, this didn’t work either. I’m a bit stumped at this point. Should add the light comes from the player like a flashlight.
It’s 6 discrete stages of closed to open, I tried to swap out different shadow objects by having 12 objects (one for each side) in the right place then disabling the ones not needed and enabling the ones needed per frame (in the animation panel). It didn’t work.
Set Time.timeScale to 0.1f or something slow, play it and see if they’re changing the way you think they are.
Or leave time normal speed, then execute Debug.Break() to pause the editor when you hit the door, and use the single-step-frame button to go one frame at a time, find out if everything is doing what you expect.