Files
UnrealEngineUWP/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/Annotations/SmartObjectSlotLinkAnnotation.h
mikko mononen d2c160c4ce SmartObjects: Added entry annotation selection and validation.
- Added USmartObjectSubsystem::FindEntryLocationForSlot() which allows to query entry points which are on navigable surface
- Improved debug visualizations
- Added visualization shape and size for slots
- Added gameplay interaction state tree task to query entry location

#jira UE-174418
#preflight 6400614fef1b24bf94f42203

[CL 24478702 by mikko mononen in ue5-main branch]
2023-03-02 05:58:30 -05:00

31 lines
971 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()
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;
};