DRG-Femboy-Voice/Source/FSD/Public/HeatMaterialComponent.h
2025-04-15 12:39:31 -07:00

33 lines
971 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "HeatMaterialComponent.generated.h"
class UMaterialInstanceDynamic;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UHeatMaterialComponent : public UActorComponent {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FName ParameterName;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MaxEffect;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TArray<UMaterialInstanceDynamic*> MaterialIntances;
public:
UHeatMaterialComponent();
protected:
UFUNCTION(BlueprintCallable)
void OnTemperatureChanged(float Temperature, bool overHeated);
public:
UFUNCTION(BlueprintCallable)
void AddHeatMaterial(UMaterialInstanceDynamic* MaterialInstance);
};