Trajectory search based on a multilevel 3D grid in Unity

I'm trying to find a way to search for multi-level paths. See the picture:

Path on a multi-level landscape composed of cubes

The orange walls would be considered a ladder, connecting you to the higher levels.

At first, I thought it was like it was 2d, but I also need to be able to move on. How can I calculate these paths?