Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

How do you load NavMeshTriangulation data?!

Discussion in 'Scripting' started by Ziron999, Feb 11, 2019.

  1. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    215
    I am creating an infinite terrain and can save the triangulation of the navmesh data but i don't know how to load it?
    Code (CSharp):
    1.     public void SaveData()
    2.     {
    3.         NavMeshTriangulation test = NavMesh.CalculateTriangulation();
    4.         //transform.parent.GetComponent<MapMagic.MapMagic>().seed
    5.         PlayerPrefsX.SetIntArray(SceneManager.GetActiveScene().name, test.indices);
    6.         PlayerPrefsX.SetVector3Array(SceneManager.GetActiveScene().name, test.vertices);
    7.     }
     
    Last edited: Feb 11, 2019
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    3,131
  3. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    215
    hmm, i'll try it out!
     
  4. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    215
    nope, can't figure out how to do anything with that...