Horje
unity navmeshagent set destination Code Example
unity navmeshagent set destination
// To use this script, you need a set-up navmesh surface.
// Attach this script onto a navmesh agent.

using UnityEngine;
using UnityEngine.AI;

public class SetDestination : MonoBehaviour {
  public Transform target;
  
  NavMeshAgent agent = GetComponent<NavMeshAgent>();
  
  void Update(){
    agent.SetDestination(target.position);
  }
}




Csharp

Related
add two large numbers Code Example add two large numbers Code Example
how to change argument of function in f# Code Example how to change argument of function in f# Code Example
c# register write value Code Example c# register write value Code Example
Dyanmically create datatable in c# Code Example Dyanmically create datatable in c# Code Example
C# show text in another form Code Example C# show text in another form Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10