This solution DOES NOT take into account collisions, there are already great tools/plugins for 3D and 2D navpathfinding. Use this plugin if you cannot use other more classic solutions, or if you want something extremely cheap.
This plugin is using my other plugin FishyUtils as an dependency