Download LyraStarterGame/Source/LyraGame/Development/LyraDeveloperSettings.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Development/LyraDeveloperSettings.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Development/LyraDeveloperSettings.cpp
-
curl -L -o LyraDeveloperSettings.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Development/LyraDeveloperSettings.cpp
1.54 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| ULyraDeveloperSettings::ULyraDeveloperSettings() | |
| { | |
| } | |
| FName ULyraDeveloperSettings::GetCategoryName() const | |
| { | |
| return FApp::GetProjectName(); | |
| } | |
| void ULyraDeveloperSettings::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) | |
| { | |
| Super::PostEditChangeProperty(PropertyChangedEvent); | |
| ApplySettings(); | |
| } | |
| void ULyraDeveloperSettings::PostReloadConfig(FProperty* PropertyThatWasLoaded) | |
| { | |
| Super::PostReloadConfig(PropertyThatWasLoaded); | |
| ApplySettings(); | |
| } | |
| void ULyraDeveloperSettings::PostInitProperties() | |
| { | |
| Super::PostInitProperties(); | |
| ApplySettings(); | |
| } | |
| void ULyraDeveloperSettings::ApplySettings() | |
| { | |
| } | |
| void ULyraDeveloperSettings::OnPlayInEditorStarted() const | |
| { | |
| // Show a notification toast to remind the user that there's an experience override set | |
| if (ExperienceOverride.IsValid()) | |
| { | |
| FNotificationInfo Info(FText::Format( | |
| LOCTEXT("ExperienceOverrideActive", "Developer Settings Override\nExperience {0}"), | |
| FText::FromName(ExperienceOverride.PrimaryAssetName) | |
| )); | |
| Info.ExpireDuration = 2.0f; | |
| FSlateNotificationManager::Get().AddNotification(Info); | |
| } | |
| } | |