I’m not sure if this is a bug or not but trying to use the FindPathToActor function in NavigationComponent in asynchronous mode, crashes the engine. The problem occurs in the call back function: UNavigationComponent::AsyncGeneratePath_OnCompleteCallback
, for some reason the assertion there fails apparently check(GetOuter()!=NULL)
In order to use the asynchronous mode, i first use UNavigationComponent::GetNavData()
to initialize the pointer MyNavAgent
or else the whole thing won’t work. The problem happens by just calling the function as i mentioned above. (Using 4.6.1)
Any help is appreciated!