You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900 #ROBOMERGE-BOT: (v613-10869866) [CL 10870549 by ryan durand in Main branch]
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "UObject/UObjectGlobals.h"
|
|
#include "Components/ActorComponent.h"
|
|
#include "NavigationInvokerComponent.generated.h"
|
|
|
|
class UNavigationSystemV1;
|
|
|
|
UCLASS(ClassGroup = (Navigation), meta = (BlueprintSpawnableComponent))
|
|
class NAVIGATIONSYSTEM_API UNavigationInvokerComponent : public UActorComponent
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
protected:
|
|
|
|
UPROPERTY(EditAnywhere, Category = Navigation, meta = (ClampMin = "0.1", UIMin = "0.1"))
|
|
float TileGenerationRadius;
|
|
|
|
UPROPERTY(EditAnywhere, Category = Navigation, meta = (ClampMin = "0.1", UIMin = "0.1"))
|
|
float TileRemovalRadius;
|
|
|
|
public:
|
|
UNavigationInvokerComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
|
|
|
|
void RegisterWithNavigationSystem(UNavigationSystemV1& NavSys);
|
|
|
|
/** Sets generation/removal ranges. Doesn't force navigation system's update.
|
|
* Will get picked up the next time NavigationSystem::UpdateInvokers gets called */
|
|
void SetGenerationRadii(const float GenerationRadius, const float RemovalRadius);
|
|
|
|
float GetGenerationRadius() const { return TileGenerationRadius; }
|
|
float GetRemovalRadius() const { return TileRemovalRadius; }
|
|
|
|
virtual void Activate(bool bReset = false) override;
|
|
virtual void Deactivate() override;
|
|
};
|