Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.

$
0
0
Having trouble with this error. I am following a tutorial and disabled the navmesh agent after a certain trigger. It worked in the tutorial, but not for me. I already have applied the navmesh and baked it into the scene, so I'm not sure why I'm still getting this. The code is below. If it's not something with the code I suspect it has something to do with the prefab.
Thanks!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class...

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>