Files
mikko mononen 7edf169364 Smart Object: Added capsule check for slot and entrance location validation
- Changed default value for entrance annotation ground check to true
- Exposed common function to return preview validation filter
- Added user capsule parameters for into the validation filter (can be optionally tied to nav params)
- Display priority on the entrance slot if other than normal
- Added option to FindEntranceLocationForSlot() to validate slot and entrance location using physics overlap check

#jira UE-174418
#rb Yoan.StAmant
#preflight 64197ec937382f6bf589eecf

[CL 24730129 by mikko mononen in ue5-main branch]
2023-03-21 07:37:13 -04:00

31 lines
1003 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SmartObjectAnnotation.h"
#include "SmartObjectSlotLinkAnnotation.generated.h"
/**
* Annotation to allow to find slots based on a Gameplay Tag.
* This can be used to reuse same behavior on different slots, allowing to use a tag to identify a related slot.
*/
USTRUCT(meta = (DisplayName="Slot Link"))
struct SMARTOBJECTSMODULE_API FSmartObjectSlotLinkAnnotation : public FSmartObjectSlotAnnotation
{
GENERATED_BODY()
virtual ~FSmartObjectSlotLinkAnnotation() override {}
#if WITH_EDITOR
virtual void DrawVisualization(FSmartObjectVisualizationContext& VisContext) const override;
virtual void DrawVisualizationHUD(FSmartObjectVisualizationContext& VisContext) const override;
#endif
/** Tag to identify this slot. */
UPROPERTY(EditAnywhere, Category="Default")
FGameplayTag Tag;
/** The slot the annotation points at. */
UPROPERTY(EditAnywhere, Category="Default")
FSmartObjectSlotReference LinkedSlot;
};