Unreal SDK  v1.1
Loading...
Searching...
No Matches
WeArtTemperature.h
Go to the documentation of this file.
1#pragma once
2
3#include "CoreMinimal.h"
4#include "WeArtCommon.h"
5#include "WeArtTemperature.generated.h"
6
10USTRUCT()
11struct WEARTPLUGIN_API FWeArtTemperature {
12 GENERATED_BODY()
13
14public:
15 UPROPERTY(EditAnywhere, Meta = (InlineEditConditionToggle))
16 bool active;
17
18 // The value 0.5 is room temperature. The value 0 is cold and value 1 is hot.
19 UPROPERTY(EditAnywhere, Meta = (DisplayName = "Value", EditCondition = "active", ClampMin = "0.0", ClampMax = "1.0"))
20 float value;
21
22 FWeArtTemperature() : active(false), value(WeArtConstants::defaultTemperature) {};
23
24 bool operator==(const FWeArtTemperature& other) const {
25 return (active == other.active && value == other.value);
26 };
27};
28
29
Definition: WeArtCommon.h:71
Temperature value to be applied to an effect.
Definition: WeArtTemperature.h:11
float value
Definition: WeArtTemperature.h:20
bool active
Definition: WeArtTemperature.h:16
bool operator==(const FWeArtTemperature &other) const
Definition: WeArtTemperature.h:24