unreal吧 关注:1,862贴子:2,228
  • 0回复贴,共1

ue4.20 NavigationSystem 过时

取消只看楼主收藏回复

按照官网的更新说明,更新了NavigationSystem ,但是下面代码还是报错
#include "NavigationSystem.h"
UNavigationSystemV1* NavMesh = UNavigationSystemV1::GetCurrent(this);
if (NavMesh) {
const float SearchRadius = 1000.0f;
FNavLocation RandomPt;
const bool bFound = NavMesh->GetRandomReachablePointInRadius(Bot->GetActorLocation(), SearchRadius, RandomPt);
}


IP属地:上海1楼2018-10-10 00:40回复