#Solution
-
Make a BP of NavArea_Default
-
Set the custom cost value as seen in picture!
-
Make a c++ class that extends the nav modifier volume
-
Set its mobility to moveable in the constructor!
-
You should now be able to spawn it at runtime, position and resize it!
UCLASS(hidecategories=(Navigation, “AI|Navigation”))
class ANavModifierVolume : public AVolume, public INavRelevantActorInterface
extend the above
in the C++ constructor
RootComponent->SetMobility(EComponentMobility::Movable);