Unreal SDK  v1.1
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"
5#include "WeArtTexture.generated.h"
6
10USTRUCT()
12 GENERATED_BODY()
13
14 UPROPERTY(EditAnywhere)
15 bool active;
16 UPROPERTY(EditAnywhere, Meta = (DisplayName = "Index", EditCondition = "active", ClampMin = "0", ClampMax = "21"))
17 TextureType textureType;
18 UPROPERTY(EditAnywhere, Meta = (DisplayName = "ForcedVelocity", EditCondition = "active"))
19 bool isForcedTextureVelocity = false;
20
21 // The value 0 represents no texture feedback and value 1 the maximum intensity.
22 float textureVelocity = 0.0f;
23
24 UPROPERTY(NoClear, Meta = (DisplayName = "Volume", EditCondition = "active", ClampMin = "0.0", ClampMax = "1.0"))
25 float volume;
26
27 FWeArtTexture() : active(false),
28 textureType((TextureType)WeArtConstants::defaultTextureIndex),
29 isForcedTextureVelocity(false),
30 textureVelocity(WeArtConstants::defaultTextureVelocity[2]),
31 volume(WeArtConstants::defaultVolumeTexture)
32 {};
33
34 bool operator==(const FWeArtTexture& other) const {
35 return (active == other.active && textureType == other.textureType && textureVelocity == other.textureVelocity && volume == other.volume && isForcedTextureVelocity == other.isForcedTextureVelocity);
36 };
37};
38
TextureType
Definition: WeArtCommon.h:48
@ Index
Definition: WeArtCommon.h:20
Definition: WeArtCommon.h:71
Texture information to be applied to an effect.
Definition: WeArtTexture.h:11
float volume
Definition: WeArtTexture.h:25
bool operator==(const FWeArtTexture &other) const
Definition: WeArtTexture.h:34
float textureVelocity
Definition: WeArtTexture.h:22
TextureType textureType
Definition: WeArtTexture.h:17
bool isForcedTextureVelocity
Definition: WeArtTexture.h:19
bool active
Definition: WeArtTexture.h:15