Files
UnrealEngineUWP/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/Annotations/SmartObjectSlotEntryAnnotation.h
Brandon Schaefer 6e31dabdc2 Initializing properties of FSmartObjectSlotEntryAnnotation
#rb skip
#jira UE-174576
#preflight horde down
#fyi Mieszko.Zielinski

#ushell-cherrypick of 23777591 by Mieszko.Zielinski

[CL 23793176 by Brandon Schaefer in ue5-main branch]
2023-01-20 13:07:44 -05:00

32 lines
1.2 KiB
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SmartObjectAnnotation.h"
#include "SmartObjectSlotEntryAnnotation.generated.h"
/**
* Annotation to define a navigation entry for a Smart Object Slot.
* This can be used to add multiple entry points to a slot, or to validate the entries against navigation data.
*/
USTRUCT()
struct SMARTOBJECTSMODULE_API FSmartObjectSlotEntryAnnotation : public FSmartObjectSlotAnnotation
{
GENERATED_BODY()
#if UE_ENABLE_DEBUG_DRAWING
virtual void DrawVisualization(FSmartObjectVisualizationContext& VisContext) const override;
virtual void DrawVisualizationHUD(FSmartObjectVisualizationContext& VisContext) const override;
virtual TOptional<FTransform> GetWorldTransform(const FTransform& SlotTransform) const override;
virtual void AdjustWorldTransform(const FTransform& SlotTransform, const FVector& DeltaTranslation, const FRotator& DeltaRotation) override;
#endif
/** Local space offset of the entry. */
UPROPERTY(EditAnywhere, Category="Default")
FVector3f Offset = FVector3f(0.f);
/** Local space rotation of the entry. */
UPROPERTY(EditAnywhere, Category="Default")
FRotator Rotation = FRotator(0.f);
};