网站首页 站内搜索

搜索结果

查询Tags标签: SetDestination,共有 1条记录
  • NavMeshAgent.SetDestination后不会自动寻路问题

    # 下面的代码是想实现点击鼠标左键,寻路到指定的位置;但是运行后,并不会寻路,而是立即打印了endvoid Update() {if (Input.GetMouseButtonUp(1)){_navMeshAgent.enabled = true;_navMeshAgent.SetDestination(_targetPos);}if (_navMeshAgent.enabled){if (_navMeshAg…

    2022/6/25 23:33:28 人评论 次浏览
扫一扫关注最新编程教程