RealtimeStyleTransferRuntime/Source/LyraGame/Interaction/InteractionStatics.h

39 lines
1.2 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/Array.h"
#include "Engine/OverlapResult.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UObject/ScriptInterface.h"
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "InteractionStatics.generated.h"
2022-09-13 07:18:28 +00:00
class AActor;
class IInteractableTarget;
class UObject;
struct FFrame;
struct FHitResult;
struct FOverlapResult;
2022-05-23 18:41:30 +00:00
/** */
UCLASS()
class UInteractionStatics : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UInteractionStatics();
public:
UFUNCTION(BlueprintCallable)
static AActor* GetActorFromInteractableTarget(TScriptInterface<IInteractableTarget> InteractableTarget);
UFUNCTION(BlueprintCallable)
static void GetInteractableTargetsFromActor(AActor* Actor, TArray<TScriptInterface<IInteractableTarget>>& OutInteractableTargets);
static void AppendInteractableTargetsFromOverlapResults(const TArray<FOverlapResult>& OverlapResults, TArray<TScriptInterface<IInteractableTarget>>& OutInteractableTargets);
static void AppendInteractableTargetsFromHitResult(const FHitResult& HitResult, TArray<TScriptInterface<IInteractableTarget>>& OutInteractableTargets);
};