how to trigger an event when a collider is inside a the trigger

Hi:

I know I can use Collider.OnTriggerEnter(); when a collider touches a trigger.

But If I want to put an cake (collider) into a box (box trigger) and when the cake is inside the the box it triggers an event, how can I do that.

You can use OnTriggerStay to do some logic when an object overlaps with the trigger.

You can also use Bounds.Contains to check if a point is inside the trigger. You may want to loop through the corners of the bounding box of your cake and check if the trigger bounds contain all of them.