Download LyraStarterGame/Source/LyraGame/Player/LyraDebugCameraController.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Player/LyraDebugCameraController.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Player/LyraDebugCameraController.cpp
-
curl -L -o LyraDebugCameraController.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Player/LyraDebugCameraController.cpp
816 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| ALyraDebugCameraController::ALyraDebugCameraController(const FObjectInitializer& ObjectInitializer) | |
| : Super(ObjectInitializer) | |
| { | |
| // Use the same cheat class as LyraPlayerController to allow toggling the debug camera through cheats. | |
| CheatClass = ULyraCheatManager::StaticClass(); | |
| } | |
| void ALyraDebugCameraController::AddCheats(bool bForce) | |
| { | |
| // Mirrors LyraPlayerController's AddCheats() to avoid the player becoming stuck in the debug camera. | |
| Super::AddCheats(true); | |
| Super::AddCheats(bForce); | |
| } | |