Announcement

Collapse
No announcement yet.

Log to Console

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    PlayerController::ClientMessage usually does this, and you can see how it passes through to ClientTeamMessage, and then (in the context of the local player controller) calls this:
    CastChecked<ULocalPlayer>(Player)->ViewportClient->ViewportConsole->OutputText( SMod );

    So ya, get a reference to the player controller, and call ClientMessage(TEXT("Console message"));

    Leave a comment:


  • replied
    I do not believe any of those log to the ~ Console, am I wrong?

    Leave a comment:


  • replied
    Do you mean something like this?

    GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("This is an on screen message!"));
    UE_LOG(LogTemp, Log, TEXT("Log text %f"), 0.1f);
    UE_LOG(LogTemp, Warning, TEXT("Log warning"));
    UE_LOG(LogTemp, Error, TEXT("Log error"));
    FError::Throwf(TEXT("Log error"));
    FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(TEXT("Dialog message")));
    Logs, Printing Messages To Yourself During Runtime

    Leave a comment:


  • started a topic Log to Console

    Log to Console

    Haven't been able to find anything on this, is it possible to log to the client's console?
Working...
X