Unreal SDK  v1.2.0
Loading...
Searching...
No Matches
WeArtTexture.h
Go to the documentation of this file.
1#pragma once
2
3#include "CoreMinimal.h"
4#include "WeArtCommon.h"
6
10USTRUCT()
12 GENERATED_BODY()
13
14
15 UPROPERTY(EditAnywhere)
16 bool active;
17
19 UPROPERTY(EditAnywhere, Meta = (DisplayName = "Index", EditCondition = "active", ClampMin = "0", ClampMax = "21"))
20 TextureType textureType;
21
23 UPROPERTY(EditAnywhere, Meta = (DisplayName = "ForcedVelocity", EditCondition = "active"))
24 bool isForcedTextureVelocity = false;
25
26 // The value 0 represents no texture feedback and value 1 the maximum intensity.
27 float textureVelocity = 0.0f;
28
30 UPROPERTY(NoClear, Meta = (DisplayName = "Volume", EditCondition = "active", ClampMin = "0.0", ClampMax = "1.0"))
31 float volume;
32
34 FWeArtTexture() : active(false),
35 textureType((TextureType)WeArtConstants::defaultTextureIndex),
36 isForcedTextureVelocity(false),
37 textureVelocity(WeArtConstants::defaultTextureVelocity[2]),
38 volume(WeArtConstants::defaultVolumeTexture)
39 {};
40
46 bool operator==(const FWeArtTexture& other) const {
47 return (active == other.active && textureType == other.textureType && textureVelocity == other.textureVelocity && volume == other.volume && isForcedTextureVelocity == other.isForcedTextureVelocity);
48 };
49
55 bool operator!=(const FWeArtTexture& other) const {
56 return (active != other.active || textureType != other.textureType || textureVelocity != other.textureVelocity || volume != other.volume || isForcedTextureVelocity != other.isForcedTextureVelocity);
57 };
58};
59
TextureType
Definition: WeArtCommon.h:156
Definition: WeArtCommon.h:179
Texture information to be applied to an effect.
Definition: WeArtTexture.h:11
float volume
Definition: WeArtTexture.h:31
bool operator==(const FWeArtTexture &other) const
Equality operator for comparing two texture objects.
Definition: WeArtTexture.h:46
float textureVelocity
Definition: WeArtTexture.h:27
TextureType textureType
Definition: WeArtTexture.h:20
bool isForcedTextureVelocity
Definition: WeArtTexture.h:24
bool active
Definition: WeArtTexture.h:16
bool operator!=(const FWeArtTexture &other) const
Inequality operator for comparing two texture objects.
Definition: WeArtTexture.h:55