Agrarsense
CollisionSensorParameters.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "GameFramework/Actor.h"
9
10#include "CollisionSensorParameters.generated.h"
11
12USTRUCT(Blueprintable)
13struct AGRARSENSE_API FCollisionSensorParameters
14{
15 GENERATED_BODY()
16
17 UPROPERTY(EditAnywhere, BlueprintReadWrite)
18 AActor* OwningActor = nullptr;
19
20 UPROPERTY(EditAnywhere, BlueprintReadWrite)
21 bool UseActorCollision = true;
22
23 UPROPERTY(EditAnywhere, BlueprintReadWrite)
24 UPrimitiveComponent* PrimitiveComponent = nullptr;
25
26 void Reset()
27 {
28 OwningActor = nullptr;
29 PrimitiveComponent = nullptr;
30 }
31
32};