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

Method OnRecordClicked

Source/URLab/Private/UI/MjSimulateWidget.cpp:508–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508void UMjSimulateWidget::OnRecordClicked()
509{
510 if (!ManagerRef)
511 return;
512 AMjReplayManager* ReplayMgr = Cast<AMjReplayManager>(
513 UGameplayStatics::GetActorOfClass(GetWorld(), AMjReplayManager::StaticClass()));
514 if (!ReplayMgr)
515 return;
516
517 if (ReplayMgr->bIsRecording)
518 {
519 ManagerRef->StopRecording();
520 }
521 else
522 {
523 ManagerRef->StartRecording();
524 }
525}
526
527void UMjSimulateWidget::OnReplayClicked()
528{

Callers

nothing calls this directly

Calls 2

StopRecordingMethod · 0.45
StartRecordingMethod · 0.45

Tested by

no test coverage detected