Added Interactable Environment Actor Component Class

This commit is contained in:
Philip W 2023-01-06 13:43:39 +00:00
parent c7d1394e98
commit 6096d5a783
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,31 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "InteractableEnvironmentObject.h"
// Sets default values for this component's properties
UInteractableEnvironmentObject::UInteractableEnvironmentObject()
{
PrimaryComponentTick.bCanEverTick = true;
// ...
}
// Called when the game starts
void UInteractableEnvironmentObject::BeginPlay()
{
Super::BeginPlay();
// ...
}
// Called every frame
void UInteractableEnvironmentObject::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
}

View File

@ -0,0 +1,32 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "InteractableEnvironmentObject.generated.h"
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class THE_TWILIGHT_ABYSS_API UInteractableEnvironmentObject : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UInteractableEnvironmentObject();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
UPROPERTY(EditDefaults)
bool bInteractable = false;
UFUNCTION(Blueprintcallable)
virtual
};