FNavigationSystem::AddNavigationSystemToWorld

Creates an instance of NavigationSystem (class being specified by WorldSetting's NavigationSystemConfig) A new instance will be created only if given WorldOwner doesn't have one yet.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/AI/NavigationSystemBase.h

Include

#include "AI/NavigationSystemBase.h"

Source

/Engine/Source/Runtime/Engine/Private/AI/NavigationSystemBase.cpp

Syntax

namespace FNavigationSystem
{
    void FNavigationSystem::AddNavigationSystemToWorld
    (
        UWorld & WorldOwner,
        const FNavigationSystemRunMode RunMode,
        UNavigationSystemConfig * NavigationSystemConfig,
        const bool bInitializeForWorld
    )
}

Remarks

Creates an instance of NavigationSystem (class being specified by WorldSetting's NavigationSystemConfig) A new instance will be created only if given WorldOwner doesn't have one yet. The new instance will be assigned to the given WorldOwner (via SetNavigationSystem call) and depending on value of bInitializeForWorld the InitializeForWorld function will be called on the new NavigationSystem instance. (

Parameters

Parameter

Description

RunMode

if set to a valid value (other than FNavigationSystemRunMode::InvalidMode) will also configure the created NavigationSystem instance for that mode

NavigationSystemConfig

is used to pick the navigation system's class and set it up. If null then WorldOwner.WorldSettings.NavigationSystemConfig will be used

See Also

UWorld.NavigationSystem)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback