OnTriggerStay2D not getting called after a second

OnTrggerStay2D is not called after a second and I am not sure why(first screenshot)
but when the player starts moving it is getting called again for a second and stops(second screenshot)


OnTriggerStay2D is not a reliable function from my understanding. It is supposed to fire every frame another object is within a trigger collider but from what I’ve seen it doesn’t always work that way. It may have something to do with optimization and sleeping rigidbodies.
The best way to work around this issue is to set a bool to true on trigger enter and set it to false on trigger exit, then during your normal update function you check for the bool and do your action if it’s true.

I fixed it and now it works more consistently, Thank you!

Happy to help! Feel free to hit me up if you need anything else.