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

Method OnReplayClicked

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

Source from the content-addressed store, hash-verified

525}
526
527void UMjSimulateWidget::OnReplayClicked()
528{
529 if (!ManagerRef)
530 return;
531 AMjReplayManager* ReplayMgr = Cast<AMjReplayManager>(
532 UGameplayStatics::GetActorOfClass(GetWorld(), AMjReplayManager::StaticClass()));
533 if (!ReplayMgr)
534 return;
535
536 if (ReplayMgr->bIsReplaying)
537 {
538 ManagerRef->StopReplay();
539 }
540 else
541 {
542 ManagerRef->StartReplay();
543 }
544}
545
546void UMjSimulateWidget::OnSnapshotClicked()
547{

Callers

nothing calls this directly

Calls 2

StopReplayMethod · 0.45
StartReplayMethod · 0.45

Tested by

no test coverage detected