UnityGame/Library/PackageCache/com.unity.ai.navigation/Tests/Runtime/NavMeshSurfaceBuildFromAwake.cs

16 lines
276 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine;
namespace Unity.AI.Navigation.Tests
{
[DefaultExecutionOrder(-1)]
class NavMeshSurfaceBuildFromAwake : MonoBehaviour
{
public NavMeshSurface surface;
void Awake()
{
surface.BuildNavMesh();
}
}
}