Central Debug Component

The Debug Central (AC_DebugCentral) component is a powerful debugging utility designed to monitor, log, and display real-time information about all key components of the framework. It collects data from every major component and feeds it into the W_DebugWindow widget, which handles parsing and formatting the data for display in the UI.

It is added to the Character class by default (B_Soulslike_Character).

How It Works

  • Initialization & Component Collection

    • Allows a generous time for all components to be initialized before initializing itself.

    • Collects references to all relevant gameplay components, ensuring the debug panel has access to the latest state of the game.

  • Debug Toggle & Tick Event Handling

    • On Begin Play, the system checks if debugging is enabled (EnableDebugging flag) and accordingly activates/deactivates ticking and updates data at a regular interval.

  • Parsing & Formatting Debug Data

    • The UpdateComponentData() method inside W_DebugWindow is responsible for querying each component and converting its data into a structured log entry.

    • Uses a Gameplay Tag Switch to determine which component’s data is currently needed.

    • Parses relevant properties into a readable string for display.

Example Usage

Example From W_DebugWindow

Last updated

Was this helpful?