Search Unity

Problem with navigation

Discussion in 'Navigation' started by michalwitek12322, Mar 24, 2019.

  1. michalwitek12322

    michalwitek12322

    Joined:
    Jun 23, 2018
    Posts:
    1
    Hello, I have a problem with the fact that my application, which prepares for the competition does not want to act too much, but actually works only on the preview (video below), the main purpose is to navigate the school model but if everything goes well and the navigator calmly finds the way on the preview, after building it on any plaform, and regardless of whether Mono or L2CPP, I always have the same mistake, i.e. the navigator "winks" as if he was not on navmeshu or could not find the way. I also attach the following scripts:
    https://pastebin.com/euKFC0EE - base navigation script
    https://pastebin.com/KjHTemGE - level change script

    Video:


    ScreenShots:
    upload_2019-3-24_22-22-57.png
    upload_2019-3-24_22-23-31.png
    Errors: upload_2019-3-24_22-22-57.png
    upload_2019-3-24_22-24-40.png
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Can't exactly find anything wrong here so far.
    Can you, when you spawn an agent, debug log the agent's information, specifically the NavMeshOwner might be interesting here, but feel free to log things like the path as well.
    Then compare the logs between editor and build. Log info is stored in build/Data/output.txt