You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "Components/PrimitiveComponent.h"
|
|
#include "AI/Navigation/NavLinkDefinition.h"
|
|
#include "NavLinkHostInterface.h"
|
|
#include "NavLinkComponent.generated.h"
|
|
|
|
class FPrimitiveSceneProxy;
|
|
struct FNavigationRelevantData;
|
|
|
|
UCLASS(ClassGroup = (Navigation), meta = (BlueprintSpawnableComponent), hidecategories = (Activation))
|
|
class NAVIGATIONSYSTEM_API UNavLinkComponent : public UPrimitiveComponent, public INavLinkHostInterface
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Navigation)
|
|
TArray<FNavigationLink> Links;
|
|
|
|
virtual void GetNavigationData(FNavigationRelevantData& Data) const override;
|
|
virtual bool IsNavigationRelevant() const override;
|
|
|
|
virtual bool GetNavigationLinksClasses(TArray<TSubclassOf<class UNavLinkDefinition> >& OutClasses) const override { return false; }
|
|
virtual bool GetNavigationLinksArray(TArray<FNavigationLink>& OutLink, TArray<FNavigationSegmentLink>& OutSegments) const override;
|
|
|
|
virtual FBoxSphereBounds CalcBounds(const FTransform &LocalToWorld) const override;
|
|
virtual FPrimitiveSceneProxy* CreateSceneProxy() override;
|
|
virtual bool ShouldRecreateProxyOnUpdateTransform() const override { return true; }
|
|
|
|
#if WITH_EDITOR
|
|
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
|
virtual void PostEditUndo() override;
|
|
virtual void PostEditImport() override;
|
|
#endif // WITH_EDITOR
|
|
};
|