Const version of function is not used elsewhere in the engine so it usually gets skipped when compiling.
Produces the following error when compiling:
UnrealEngine\Engine\Source\Runtime\NavigationSystem\Public\NavigationData.h(313): error C2440: 'static_cast': cannot convert from 'const FNavigationPath *' to 'PathClass *'
Found by UDN user who made a PR for issue
Add code to call following lines and compile (attempt anyway):
const FNavigationPath* TestNavPath = nullptr; const FNavMeshPath* TestNavMeshPath = TestNavPath->CastPath<FNavMeshPath>();
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-138341 in the post.
0 |
Component | UE - AI - Navigation |
---|---|
Affects Versions | 4.27.1 |
Target Fix | 5.0 |
Fix Commit | 13835083 |
---|
Created | Jan 5, 2022 |
---|---|
Resolved | Jan 7, 2022 |
Updated | Feb 18, 2022 |