Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question A path between 2 stationary objects

Discussion in 'Navigation' started by Boitsy_, Jul 7, 2023.

  1. Boitsy_

    Boitsy_

    Joined:
    Mar 16, 2021
    Posts:
    5
    Hello there,
    I'm very new to Unity and was trying to just make a line (or rather a path) between two objects.
    I've found a very useful thread called (Draw navigation line between player and goal) however I have ran into some issues regarding the "NavMesh.CalculatePath" part of the code. It keeps telling me that there is an object reference error and I can't understand why. If anyone can help it'll be much appreciated.
     

    Attached Files: