Skip to content

GameplayDebugger

2 tools for Gameplay Debugger categories.

Back to the index.

register_gameplay_debugger_category

Additive Idempotent

Register a custom Gameplay Debugger category that prints chosen properties of the selected debug actor, one line per spec (IGameplayDebugger::RegisterCategory); Blueprints cannot author debugger categories, so this is the only way from MCP. Idempotent: a repeat with the same name updates its specs to the new list (already_existed true) and registers nothing new. It lives in memory for this editor session only, nothing is saved; unregister_gameplay_debugger_category is the inverse. It draws only in PIE or a game with a debug actor selected: open the debugger with the apostrophe key or the console command gdt.Toggle; the category starts enabled. A missing name, empty specs or a spec without property_name is an error and nothing is registered, as is a build without the GameplayDebugger module.

Parameter Type Required Description
category_name string yes Name of the category as the debugger shows it, e.g. 'MyAI'; reusing a name this tool registered updates it.
specs array yes Non-empty array of {property_name, actor_class?, color?, label?}: property_name is a property of the debug actor's class (a missing one prints '<property not found>'); actor_class limits the line to actors of that class by short class name, e.g. 'Character'; color is a debugger text color such as 'white', 'red', 'green', 'yellow' or 'cyan'; label replaces the property name in the line. e.g. [{"property_name": "Health", "color": "green"}]

Returns: { category_name: string, spec_count: int, registered: bool, already_existed: bool }

unregister_gameplay_debugger_category

Destructive Idempotent

Unregisters a named GameplayDebugger category created by register_gameplay_debugger_category (GameplayDebugger.h IGameplayDebugger::UnregisterCategory, the exact inverse of RegisterCategory). Also drops the category's stored specs. Idempotent: unregistering a category that register_gameplay_debugger_category did not create is an honest no-op reporting already_absent:true.

Parameter Type Required Description
category_name string yes Name of the debugger category to unregister (required)

Returns: { category_name: string, unregistered: bool, already_absent: bool }