Untitled

 avatar
unknown
plain_text
17 days ago
330 B
4
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