ResetPath

NodeCanvas Forums Support ResetPath

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12077
    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.

    Attachments:
    You must be logged in to view attached files.
    #12084
    Gavalakis
    Keymaster

    Hello,

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

    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #12087
    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.