Fahrercode -Reinigung Auto -Einrückung bei Kommentaren
Posted: 07 Apr 2025, 06:50
Weiß jemand, wie man das Code -Reinigungswerkzeug von Rider auswirkt, indem er die Einklingel von Kommentaren beeinflusst?
Jede Hilfe wäre sehr geschätzt.
Code: Select all
switch (PlayerController->IsPaused())
{
// Game is currently unpaused.
case false:
// Pause the game.
UGameplayStatics::SetGamePaused(GetWorld(), true);
// Create the widget
PauseMenuInstance = CreateWidget(PlayerController, PauseMenu);
// Add to player screen
PauseMenuInstance->AddToPlayerScreen();
// Game is currently paused.
case true:
// Unpause the game.
UGameplayStatics::SetGamePaused(GetWorld(), false);
// Remove from player screen
PauseMenuInstance->RemoveFromParent();
}
< /code>
dazu: < /p>
switch (PlayerController->IsPaused())
{
// Game is currently unpaused.
case false:
// Pause the game.
UGameplayStatics::SetGamePaused(GetWorld(), true);
// Create the widget
PauseMenuInstance = CreateWidget(PlayerController, PauseMenu);
// Add to player screen
PauseMenuInstance->AddToPlayerScreen();
// Game is currently paused.
case true:
// Unpause the game.
UGameplayStatics::SetGamePaused(GetWorld(), false);
// Remove from player screen
PauseMenuInstance->RemoveFromParent();
}