Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to GET the NavMesh bake settings in a script?

Discussion in 'Navigation' started by cpuRunningHot, Jan 12, 2023.

  1. cpuRunningHot

    cpuRunningHot

    Joined:
    May 5, 2018
    Posts:
    94
    upload_2023-1-12_16-4-6.png

    How do we get these values in a script so we can validate that they are correct according to our requirements ( other than asking a human to manually inspect every scene )? It would be nice to set them from a script, but need to at least be able to read the values and throw an error if they are not as expected.

    Thx :D
     
  2. cpuRunningHot

    cpuRunningHot

    Joined:
    May 5, 2018
    Posts:
    94
    Update... we can achieve it by directly parsing the unity scene file as text and testing the key value pairs. But if a more graceful way exists, please let me know.