MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / EndPlay

Method EndPlay

Source/URLab/Private/MuJoCo/Input/MjInputHandler.cpp:78–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void UMjInputHandler::EndPlay(const EEndPlayReason::Type EndPlayReason)
79{
80 if (MouseDeltaProcessor.IsValid() && FSlateApplication::IsInitialized())
81 {
82 FSlateApplication::Get().UnregisterInputPreProcessor(MouseDeltaProcessor);
83 }
84 MouseDeltaProcessor.Reset();
85
86 if (UWorld* World = GetWorld())
87 {
88 if (APlayerController* PC = World->GetFirstPlayerController())
89 {
90 UnlockCamera(PC);
91 }
92 }
93
94 Super::EndPlay(EndPlayReason);
95}
96
97void UMjInputHandler::LockCamera(APlayerController* PC)
98{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected