Ejemplo n.º 1
0
void UNavigationQueryFilter::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
    Super::PostEditChangeProperty(PropertyChangedEvent);

    // remove cached filter settings from existing NavigationSystems
    for (const FWorldContext& Context : GEngine->GetWorldContexts())
    {
        UNavigationSystem* NavSys = UNavigationSystem::GetCurrent(Context.World());
        if (NavSys)
        {
            NavSys->ResetCachedFilter(GetClass());
        }
    }
}