2D pathfinding?

Hi, im really new to all this stuff, and i was wondering. How do i make pathfinding for an AI in an x/y 2D game? I’ve watched multiple videos and searched everywhere, but overall i’m just really confused. Can anyone help me?

Sadly, I don’t think you can use a NavMesh in Unity2d, though I made a project which simulates all the different algorithms for pathfinding. Try researching about the four main pathfinding algorithms: Dijkstra, Best First, Breadth-First, and A*. Basically how they work is you have a node graph with a start and a destination and the algorithm tries to find the shortest path between the two nodes.