Overlapping Objects | For a 2d fighter platformer project

Hello Unity community. I am looking for some guidance on the I stated in the title.

For my game attacking is a major feature. I figured out that I can use onCollisionEnter2d to make projectiles react upon collision with the player object. But what if I want my object to be non boxcollider2d. Like some laser of fire explosion for example. And they still could be triggered upon “colliding” technically overlapping, how can I solve this matter?

Thanks a lot in advance

You can set a collider to be a trigger & use on trigger stay to effect them. It is called per frame while they are inside though so you want to keep track of them being already effected.

thanks dude great info