Download LyraStarterGame/Source/LyraGame/Hotfix/LyraTextHotfixConfig.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 970 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Hotfix/LyraTextHotfixConfig.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Hotfix/LyraTextHotfixConfig.h
-
curl -L -o LyraTextHotfixConfig.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Hotfix/LyraTextHotfixConfig.h
970 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FPolyglotTextData; | |
| struct FPropertyChangedEvent; | |
| /** | |
| * This class allows hotfixing individual FText values anywhere | |
| */ | |
| UCLASS(config=Game, defaultconfig) | |
| class ULyraTextHotfixConfig : public UDeveloperSettings | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraTextHotfixConfig(const FObjectInitializer& ObjectInitializer); | |
| // UObject interface | |
| virtual void PostInitProperties() override; | |
| virtual void PostReloadConfig(FProperty* PropertyThatWasLoaded) override; | |
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; | |
| // End of UObject interface | |
| private: | |
| void ApplyTextReplacements() const; | |
| private: | |
| // The list of FText values to hotfix | |
| UPROPERTY(Config, EditAnywhere) | |
| TArray<FPolyglotTextData> TextReplacements; | |
| }; | |