Skip to content
Snippets Groups Projects
Commit 57c79163 authored by David Gilbert's avatar David Gilbert :bug:
Browse files

refactor(interaction): remove targetable

parent 80a5b812
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#include "Pawn/BasicVRInteractionComponent.h" #include "Pawn/BasicVRInteractionComponent.h"
#include "Interaction/Targetable.h"
#include "Misc/Optional.h" #include "Misc/Optional.h"
DEFINE_LOG_CATEGORY(LogVRInteractionComponent); DEFINE_LOG_CATEGORY(LogVRInteractionComponent);
......
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UObject/Object.h"
#include "UObject/Interface.h"
#include "Targetable.generated.h"
UINTERFACE(BlueprintType)
class RWTHVRTOOLKIT_API UTargetable : public UInterface
{
// has to be empty, this is Unreals syntax to make it visible in blueprints
GENERATED_BODY()
};
class RWTHVRTOOLKIT_API ITargetable
{
GENERATED_BODY()
public:
// function that will be called when targetable actor is targeted, the world pos of the target is returned
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Gameplay)
void OnTargeted(FVector WorldPositionOfTarget);
//function that will be called when a targetable actor gets focused
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Gameplay)
void OnTargetedEnter();
//function that will be called when a targetable actor loses focused
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = Gameplay)
void OnTargetedLeave();
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment