How can I make something happen when my character i sin a certain range of something.

How can I say the map start generating when my character is in a certain range of the map. Or like when my character comes near an object that the object gets destroyed.

You can use a Trigger Collider.