standing in fire or specific area I wanna take damage

Hey, I trying to add a script to a fire or a specific area in my game that makes me take damage when I stand in it so I figured out that I probably needed something like when I collider with the fire I take damage... I got it to work with the fire but have no idea how I can make an area I stand in I take damage from but I can still stand in it.

Anyone know a answered question or example?

Colliders are what you want. You can freely move through them. They aren't "physical", they just fire off events when they intersect other colliders.