How to make something happen when you are on a certain spot?

I want to make something like when you pass a certain spot, something happens. Like if you turn a corner and pass a certain spot, it makes something appear or whatnot. Sorry if this is too vague, i hope you get it. Thanks in advance.

Place an Empty object with a Collider Component with ‘is Trigger’ activated wherever you want this to happen, and add a OnTriggerEnter() function to this object. When the player steps inside the trigger, that function will be executed.