Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved runtime Navmesh baking

Discussion in 'Navigation' started by dasruedi_unity, Dec 2, 2022.

  1. dasruedi_unity

    dasruedi_unity

    Joined:
    Jul 20, 2022
    Posts:
    13
    I am currently working on a project where i need to rebake a navmesh during runtime, as players are supposed to be able to change the height of areas within a small landscape that is roamed by autonomously moving agents.

    For the Navmesh I am using this Package: https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html

    The problem is that during my research multiple creators are doing stuff like this: upload_2022-12-2_15-26-38.png

    upload_2022-12-2_15-27-53.png

    in order to do something like this:
    upload_2022-12-2_15-29-42.png

    but if I try to Type in NavMeshSurface, I am told that the namespace can not be found and yes the script is using UnityEngine.AI

    I am now wondering what is going wrong? Is it outdated? Am I using the wrong package? Or what else could it be?


    The two tutorials this issue is based on are linked below:
    (Screenshot taken at 5:48)
    (Screenshot taken at 7:32)


    I really hope you can answer my questions and thanks for all answers in advance.
     
  2. Terraya

    Terraya

    Joined:
    Mar 8, 2018
    Posts:
    646
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,316
    There's a dedicated NavMesh forum you should use here.

    I'll move your post for you.
     
  4. dasruedi_unity

    dasruedi_unity

    Joined:
    Jul 20, 2022
    Posts:
    13
    thanks. Sorry this my first post to this forum.
     
    MelvMay likes this.
  5. dasruedi_unity

    dasruedi_unity

    Joined:
    Jul 20, 2022
    Posts:
    13
    Oh I was quite sure they were the same one, because the documentation site that linked to the git in the tutorial seemed to be the same based on the headline at lest. I`ll check it out.
     
  6. dasruedi_unity

    dasruedi_unity

    Joined:
    Jul 20, 2022
    Posts:
    13
    it worked. thanks a lot.