Newbie trying to make a crushing ceiling type of hazard. Need to enable and disable Colliders depending on frame of animation I think

As the title says, I’m trying to make a crushing ceiling. Here’s a little animation for reference162345-crusher.gif

I looked into this a little bit but nothing has quite made sense and one thing I found linked to AnimationEvents in the Manual but it says it’s no longer there. I have no idea if that’s because it’s removed or because I only have the free version of Unity right now (Don’t really have the money for it right now)

I have two immediate guesses on what I might need to do

  1. Disabling and enabling Colliders on certain frames of the animation but I’m not sure how to do that or if it’s still possible in a simple way

2)I have the passive state(when it’s up) and the active state (when it’s down) as two objects and just sorta switch between them on a timer in a sorta manual-animation style

I’m not entirely sure on how to do this and I don’t want to just mindlessly throw my head against a wall today trying to figure it out. If anyone could steer me in the right direction that would be much appreciated. Thanks in advance for any help you can give!

im not sure why you want to enable and diable collider but doing so using an animation can either be done by enableling automatic keyframing in the animationtab and en/disableling the collider manuely or by using an animation event that calls a function that messes with the collider