Skip to content

2.0.0

Latest

Choose a tag to compare

@ogg17 ogg17 released this 12 Aug 10:57
· 2 commits to main since this release

Changelog

[2.0.0] - 2026-08-12

Breaking

  • Replaced the composable BaseCTag / CTag / params object API with a prefix markup mini-language: &name; / &name(overrides);, then raw message body. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • CDebug.Log now takes a markup string (plus optional Unity context and string.Format args for the body only), not tag objects. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • Removed fluent tag builders and string/object extension helpers (AsTag, AsText, AsTimestamp, etc.). Register presets with CDebug.RegisterTag / TagRegistry instead. (Assets/Plugins/CustomUnityDebug/Runtime/TextFormatting/)

Added

  • Markup pipeline: PrefixParser, TagRegistry, TagPreset, TagOverrides, TagRender, ColorTokens. (Assets/Plugins/CustomUnityDebug/Runtime/Markup/)
  • Built-in presets: default, debug, ok, warn/warning, error/err, info, time. Unknown names fall back to default style with the name as display text.
  • Override tokens for TextType, Brackets, Spacers, LogType, TextCase (upper/lower/asis), named colors, and #RRGGBB / #RRGGBBAA (via ColorUtility.TryParseHtmlString).
  • CDebug.TryFormat to compose rich text without emitting to the console. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • CDebug.LogWarning / CDebug.LogError to force the Unity log channel. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • CDebug.RegisterColor / ColorTokens for Unity Color.* names plus package extras (orange, pink, …). (Assets/Plugins/CustomUnityDebug/Runtime/Markup/ColorTokens.cs)
  • Rewrote Edit Mode tests for parsing, overrides, colors, severity, and runtime switches. (Assets/Plugins/CustomUnityDebug/Tests/EditMode/CustomUnityDebugTests.cs)
  • Rewrote the demo MonoBehaviour for the markup workflow. (Assets/Scripts/TestDebug.cs)

Changed

  • CDebugSettings remains the home for DebugEnabled, DebugFirstTagAlwaysDefault, DisableAllMessageWithTag, and body style via DefaultText (now a TagPreset). (Assets/Plugins/CustomUnityDebug/Runtime/CDebugSettings.cs)
  • Built-in presets use Spacer.None; put a space after ; when you want a gap (&ok; hello).
  • Convenience colors stay on CDebug (Orange, Red, …) as accessors into ColorTokens.
  • README rewritten for the markup API. (README.md)
  • Kept StringBuilderPool for GC-friendly message building. (Assets/Plugins/CustomUnityDebug/Runtime/StringBuilderPool.cs)

Removed

  • Removed BaseCTag, CTag, CTagExtensions, and object-based CDebug.Log(params …) overloads.
  • Removed legacy 0.1.0_README.md (superseded by the current README).