Download LyraStarterGame/Plugins/GameSettings/Source/Public/GameSettingValue.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/GameSettings/Source/Public/GameSettingValue.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/GameSettings/Source/Public/GameSettingValue.h
-
curl -L -o GameSettingValue.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/GameSettings/Source/Public/GameSettingValue.h
1.16 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class UObject; | |
| //-------------------------------------- | |
| // UGameSettingValue | |
| //-------------------------------------- | |
| /** | |
| * The base class for all settings that are conceptually a value, that can be | |
| * changed, and thus reset or restored to their initial value. | |
| */ | |
| UCLASS(MinimalAPI, Abstract) | |
| class UGameSettingValue : public UGameSetting | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UE_API UGameSettingValue(); | |
| /** Stores an initial value for the setting. This will be called on initialize, but should also be called if you 'apply' the setting. */ | |
| UE_API virtual void StoreInitial() PURE_VIRTUAL(, ); | |
| /** Resets the property to the default. */ | |
| UE_API virtual void ResetToDefault() PURE_VIRTUAL(, ); | |
| /** Restores the setting to the initial value, this is the value when you open the settings before making any tweaks. */ | |
| UE_API virtual void RestoreToInitial() PURE_VIRTUAL(, ); | |
| protected: | |
| UE_API virtual void OnInitialized() override; | |
| }; | |