UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NavRelevantComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
6#include "CoreMinimal.h"
7#endif
11#include "NavRelevantComponent.generated.h"
12
13UCLASS(MinimalAPI)
15{
17
18 //~ Begin UActorComponent Interface
19 NAVIGATIONSYSTEM_API virtual void OnRegister() override;
20 NAVIGATIONSYSTEM_API virtual void OnUnregister() override;
21 //~ End UActorComponent Interface
22
23 //~ Begin INavRelevantInterface Interface
24 NAVIGATIONSYSTEM_API virtual FBox GetNavigationBounds() const override;
25 NAVIGATIONSYSTEM_API virtual bool IsNavigationRelevant() const override;
26 NAVIGATIONSYSTEM_API virtual void UpdateNavigationBounds() override;
27 NAVIGATIONSYSTEM_API virtual UObject* GetNavigationParent() const override;
28 //~ End INavRelevantInterface Interface
29
30 NAVIGATIONSYSTEM_API virtual void CalcAndCacheBounds() const;
31
32 UFUNCTION(BlueprintCallable, Category="AI|Navigation")
33 NAVIGATIONSYSTEM_API void SetNavigationRelevancy(bool bRelevant);
34
36 NAVIGATIONSYSTEM_API void ForceNavigationRelevancy(bool bForce);
37
39 NAVIGATIONSYSTEM_API void RefreshNavigationModifiers();
40
41protected:
42
44 mutable FBox Bounds;
45
47 UPROPERTY()
48 uint32 bAttachToOwnersRoot : 1;
49
50 mutable uint32 bBoundsInitialized : 1;
51 uint32 bNavParentCacheInitialized : 1;
52
54 TObjectPtr<UObject> CachedNavParent;
55};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NavRelevantInterface.h:49
Definition ActorComponent.h:152
Definition NavRelevantComponent.h:15
FBox Bounds
Definition NavRelevantComponent.h:44
Definition Object.h:95
Definition ObjectPtr.h:488