Agrarsense
TransformSensorParameters.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 "Components/PrimitiveComponent.h"
9#include "Math/Transform.h"
10
11#include "TransformSensorParameters.generated.h"
12
13USTRUCT(Blueprintable)
14struct AGRARSENSE_API FTransformSensorParameters
15{
16 GENERATED_BODY()
17
18 UPROPERTY(EditAnywhere, BlueprintReadWrite)
19 AActor* OwningActor = nullptr;
20
21 UPROPERTY(EditAnywhere, BlueprintReadWrite)
22 bool UseOwningActorTransform = true;
23
24 UPROPERTY(EditAnywhere, BlueprintReadWrite)
25 UPrimitiveComponent* PrimitiveComponent = nullptr;
26
27 UPROPERTY(EditAnywhere, BlueprintReadWrite)
28 bool SaveTransformDataToDisk = false;
29
30 void Clear()
31 {
32 OwningActor = nullptr;
33 PrimitiveComponent = nullptr;
34 }
35};