Untitled
unknown
plain_text
9 months ago
330 B
7
Indexable
using UnityEngine;
using Unity.AI.Navigation;
public class NavMeshTimer : MonoBehaviour
{
[SerializeField] NavMeshSurface navSurface;
void Start()
{
Invoke(nameof(BuildNav), 1f);
}
void BuildNav()
{
navSurface.BuildNavMesh();
Debug.Log("NavMesh built after 1 second!");
}
}
Editor is loading...
Leave a Comment