Space Plunder
Loading...
Searching...
No Matches
UPingWidget Class Reference

#include <PingWidget.h>

Inheritance diagram for UPingWidget:

Public Member Functions

virtual bool Initialize () override
 
void UpdatePing (float Ping)
 

Protected Attributes

class UTextBlock * PingTextBlock
 

Member Function Documentation

◆ Initialize()

bool UPingWidget::Initialize ( )
overridevirtual
11{
12 const bool Success = Super::Initialize();
13 if(!Success) return false;
14 if (!ensure(PingTextBlock != nullptr)) return false;
15 return true;
16}
class UTextBlock * PingTextBlock
Definition PingWidget.h:28

◆ UpdatePing()

void UPingWidget::UpdatePing ( float Ping)
19{
20 // UE_LOG(LogMenuSystem, Warning, TEXT("Ping: %f Ping Widget"), Ping);
21 const FText PingText = UKismetTextLibrary::Conv_IntToText(UKismetMathLibrary::Round(Ping));
22 PingTextBlock->SetText(PingText);
23}

Member Data Documentation

◆ PingTextBlock

class UTextBlock* UPingWidget::PingTextBlock
protected

The documentation for this class was generated from the following files: