Skip to content

Instantly share code, notes, and snippets.

@pnegri
Last active August 29, 2015 14:05
Show Gist options
  • Save pnegri/b0a5e5e28499f22f2df3 to your computer and use it in GitHub Desktop.
Save pnegri/b0a5e5e28499f22f2df3 to your computer and use it in GitHub Desktop.
// Call super
SCompoundWidget::Tick(AllottedGeometry, InCurrentTime, InDeltaTime);
if (!OwnerHUD.IsValid()) return;
if (!OwnerHUD->PlayerOwner) return;
if (!OwnerHUD->PlayerOwner->GetPawn()) return;
AGameCharacter *hCharacter = Cast<AGameCharacter>(OwnerHUD->PlayerOwner->GetPawn());
if (!hCharacter) return;
hActorInstance = hCharacter;
// O que por dentro do GetStrength depois que texto aparecer
if (!hActorInstance->IsValid()) return FText::FromString(TEXT("---"));
AGameCharacter *hCharacter = *hActorInstance;
return FText::FromString( FString::Printf(TEXT("%d"), hCharacter->Strength );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment