- Home /
 
               Question by 
               toxmixgd · Apr 14, 2020 at 02:28 PM · 
                ainavmeshnavmeshagentnavigationsurface  
              
 
              CS0246: The type or name space name ''NavMeshSurface'' plz some help
When i save the script, Error Cs0246 appears, what can i do?
PROGRAM
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI;
public class ActiveLevelGenerator : MonoBehaviour { public GameObject[] objects; public NavMeshSurface surface;
 public void Generar(bool on)
 {
     if (on == true)
     {
         int rand = Random.Range(0, objects.Length);
         Instantiate(objects[rand], transform.position, Quaternion.identity);
         surface.BuildNavMesh();
         on = false;
     }
 }
}
               Comment
              
 
               
              Have you downloaded the needed assets as indicated in the documentation?
The high-level Nav$$anonymous$$esh building components listed below are not supplied with the standard Unity Editor installer which you download from the Unity store. Ins$$anonymous$$d, download them from the Unity Technologies GitHub and install them separately.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                