|
|
|
|
| #pragma once
|
|
|
| #include "Engine/DataAsset.h"
|
| #include "LyraTeamDisplayAsset.generated.h"
|
|
|
| struct FPropertyChangedEvent;
|
|
|
| class UMaterialInstanceDynamic;
|
| class UMeshComponent;
|
| class UNiagaraComponent;
|
| class AActor;
|
| class UTexture;
|
|
|
|
|
| UCLASS(BlueprintType)
|
| class ULyraTeamDisplayAsset : public UDataAsset
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly)
|
| TMap<FName, float> ScalarParameters;
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly)
|
| TMap<FName, FLinearColor> ColorParameters;
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly)
|
| TMap<FName, TObjectPtr<UTexture>> TextureParameters;
|
|
|
| UPROPERTY(EditAnywhere, BlueprintReadOnly)
|
| FText TeamShortName;
|
|
|
| public:
|
| UFUNCTION(BlueprintCallable, Category=Teams)
|
| void ApplyToMaterial(UMaterialInstanceDynamic* Material);
|
|
|
| UFUNCTION(BlueprintCallable, Category=Teams)
|
| void ApplyToMeshComponent(UMeshComponent* MeshComponent);
|
|
|
| UFUNCTION(BlueprintCallable, Category=Teams)
|
| void ApplyToNiagaraComponent(UNiagaraComponent* NiagaraComponent);
|
|
|
| UFUNCTION(BlueprintCallable, Category=Teams, meta=(DefaultToSelf="TargetActor"))
|
| void ApplyToActor(AActor* TargetActor, bool bIncludeChildActors = true);
|
|
|
| public:
|
|
|
|
|
| #if WITH_EDITOR
|
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
| #endif
|
|
|
| };
|
|
|