NavMesh in 100 Seconds

Опубликовано: 15 Май 2026
на канале: The True Duck
215
3

Learn how to quickly set up Unity NavMesh in your next game!

Scene asset: https://assetstore.unity.com/packages...

Script:
using UnityEngine;
using UnityEngine.AI;

public class FollowTarget : MonoBehaviour
{
public NavMeshAgent navMeshAgent;
public Transform target;

private void Update()
{
navMeshAgent.destination = target.position;
}
}