Download LyraStarterGame/Source/LyraGame/Teams/LyraTeamDisplayAsset.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamDisplayAsset.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Teams/LyraTeamDisplayAsset.h
-
curl -L -o LyraTeamDisplayAsset.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamDisplayAsset.h
1.55 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FPropertyChangedEvent; | |
| class UMaterialInstanceDynamic; | |
| class UMeshComponent; | |
| class UNiagaraComponent; | |
| class AActor; | |
| class UTexture; | |
| // Represents the display information for team definitions (e.g., colors, display names, textures, etc...) | |
| 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: | |
| //~UObject interface | |
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; | |
| //~End of UObject interface | |
| }; | |