Download LyraStarterGame/Source/LyraGame/Teams/LyraTeamStatics.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamStatics.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Teams/LyraTeamStatics.h
-
curl -L -o LyraTeamStatics.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Teams/LyraTeamStatics.h
1.57 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class ULyraTeamDisplayAsset; | |
| class UObject; | |
| class UTexture; | |
| struct FFrame; | |
| /** A subsystem for easy access to team information for team-based actors (e.g., pawns or player states) */ | |
| UCLASS() | |
| class ULyraTeamStatics : public UBlueprintFunctionLibrary | |
| { | |
| GENERATED_BODY() | |
| public: | |
| // Returns the team this object belongs to, or INDEX_NONE if it is not part of a team | |
| UFUNCTION(BlueprintCallable, Category=Teams, meta=(Keywords="GetTeamFromObject", DefaultToSelf="Agent", AdvancedDisplay="bLogIfNotSet")) | |
| static void FindTeamFromObject(const UObject* Agent, bool& bIsPartOfTeam, int32& TeamId, ULyraTeamDisplayAsset*& DisplayAsset, bool bLogIfNotSet = false); | |
| UFUNCTION(BlueprintCallable, Category=Teams, meta=(WorldContext="WorldContextObject")) | |
| static ULyraTeamDisplayAsset* GetTeamDisplayAsset(const UObject* WorldContextObject, int32 TeamId); | |
| UFUNCTION(BlueprintCallable, Category = Teams) | |
| static float GetTeamScalarWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, float DefaultValue); | |
| UFUNCTION(BlueprintCallable, Category = Teams) | |
| static FLinearColor GetTeamColorWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, FLinearColor DefaultValue); | |
| UFUNCTION(BlueprintCallable, Category = Teams) | |
| static UTexture* GetTeamTextureWithFallback(ULyraTeamDisplayAsset* DisplayAsset, FName ParameterName, UTexture* DefaultValue); | |
| }; | |