How to make path generator in running screen not in editing screen?

hey everyone, I really need your help please…
I just learned unity and I just understand a little bit about coding in unity
but I want to make a path generator. this is what I want to make

  1. initial position is the first node of the path
  2. if the node is more than one, then it will moves in the order (for example: 1–>2–>3)
  3. every node we can determine the position by input x, y, and z in the screen
  4. the target will stop in the last node
    I tried to search some methods for path following, but the problem is they create path in editing screen, what I want is to create it while the screen is on the running screen
    thank you very much…

Unfortunately, Unity’s pathfinding only works when baked in the editor. If you need dynamic pathing, you’ll have to write your own code to manage it. There are a lot of good tutorials online if you google Pathfinding. I recommend starting with node-based A*.