Unity 4.0 Navigation, avoiding objects

I would like to make a object that follows objects around the map but avoids walls and other objects. I got different hallways and I want it to move from point to point by moving a object he can follow. Does anyone have a script that can do something like this?

I also saw that unity 4.0 had something new to set area’s with some kind of mesh, does anyone know?

Pro version has pathfinding included, in non pro version you will have to code it yourself. I dont really know what you are trying to achieve, but i sense Breadchrumbs might be most suitable for you. However i didnt find unity tutorial for it.

Some tutorials:

Simple pathfinding algorithm

A* tutorial

Breadchrumbs