RealDocs

UAttributeSet::PrintDebug

function GameplayAbilities Since unknown
#include "AttributeSet.h"
Access: public Specifiers: virtual

Description

Logs debug information about this AttributeSet's current state. The base implementation is a no-op; override it to print attribute values relevant to your game.

Caveats & Gotchas

  • The base class implementation does nothing; you must override it in your own AttributeSet subclass for it to output anything useful.
  • Not hooked into any console command by default; something in your codebase needs to call it explicitly, e.g. from a debug HUD or cheat manager.

Signature

virtual void PrintDebug()

Return Type

void

Example

Print current attribute values C++
void UMyHealthSet::PrintDebug()
{
    UE_LOG(LogTemp, Log, TEXT("Health: %.1f / %.1f"), GetHealth(), GetMaxHealth());
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.