| 506 | } |
| 507 | |
| 508 | void 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 | |
| 527 | void UMjSimulateWidget::OnReplayClicked() |
| 528 | { |
nothing calls this directly
no test coverage detected