Unity study notes about OnTriggerStay2D not being called every frame

Problem
It is found that the OnTriggerStay2D event is not fired every frame, the toucher is only called when it is moved.

Solution
This is caused by Rigidbody2D hibernating. Find the Sleeping Mode in Rigidbody and change it to Never Sleep
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42358083/article/details/123106197