Untitled
Anonymous
plain_text
03/09/2025 5:37 PM
440 B
15
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