Constructed navigation invoker does not work

Hello people!

I have been trying to add Navigation Invoker as a component to my actor.
This is done through BeginPlay function.

The problem is that the Navmesh does not bake at all.
It does work if I add the Navigation Invoker component manually to the actor through the editor.

I believe it has to do something with “Unknown native source”, but googling did not give me any answers.
Could somebody tell me how I can create a working component in C++ instead of manually adding it through the editor?

Hey guys,

I fixed the issue myself :smiley:
The problem was that I thought the class did not work because of the strange pop up window. But it did work!

230771-chrome-2018-02-15-13-29-51.png

So after researching more, I fixed the issue by changing the Runtime Generation to Dynamic.