ResetPath

Forums 💬 NodeCanvas ⚙️ Support ResetPath

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17964
    mohannad32
    Participant

      Hi
      I have a scene that running Navmash. every thing looks normal until when i hit a trigger that load anther scene, I got this error message once the new scene loaded.
      “ResetPath” can only be called on an active agent that has been placed on a NavMesh.

      #17966
      Gavalakis
      Keymaster

        Hello,

        Can you please confirm that MoveToGameObject.cs line #52 reads as following? :

        Thanks.

        #17965
        mohannad32
        Participant

          protected override void OnStop(){
          if (lastRequest != null && agent.gameObject.activeSelf){
          agent.ResetPath();
          }
          lastRequest = null;
          }

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.