Skip to content

Releases: ogg17/CustomUnityDebug

2.0.0

Choose a tag to compare

@ogg17 ogg17 released this 12 Aug 10:57

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).

1.0.0

Choose a tag to compare

@ogg17 ogg17 released this 24 Oct 19:32
45b4da5

Changelog

[1.0.0] - 2025-10-24

Breaking

  • Replaced the enum-driven CDebugTag/CDebugTagType system with the composable BaseCTag/CTag pipeline; CDebug.Log now accepts any number of tag elements and selects the highest LogType automatically. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • Moved runtime switches into CDebugSettings; use CDebugSettings.DebugEnabled, DebugFirstTagAlwaysDefault, DisableAllMessageWithTag, and CTag.SetEnabled instead of the removed CDebug.DebugEnabled, AlwaysDefaultTag, BoldMessageText, and CDebug.SetTagEnabled. (Assets/Plugins/CustomUnityDebug/Runtime/CDebugSettings.cs)

Added

  • Introduced Masev.CustomUnityDebug.TextFormatting with fluent tag builders (CTag, BaseCTag) plus presets for brackets, spacers, text styles, and severity levels. (Assets/Plugins/CustomUnityDebug/Runtime/TextFormatting/)
  • Added extension helpers for strings, enums, DateTime, and Unity objects (AsTag, AsText, AsTimestamp, etc.) to speed up log composition. (Assets/Plugins/CustomUnityDebug/Runtime/TextFormatting/CTagExtensions.cs)
  • Added a pooled string builder utility to minimize GC pressure when creating log entries. (Assets/Plugins/CustomUnityDebug/Runtime/StringBuilderPool.cs)
  • Added a demo MonoBehaviour that showcases the new workflow directly in the editor. (Assets/Scripts/TestDebug.cs)
  • Added edit mode tests covering formatting, pooling, log severity, and runtime switches. (Assets/Plugins/CustomUnityDebug/Tests/EditMode/CustomUnityDebugTests.cs)

Changed

  • Updated convenience tags (CDebug.Debug, CDebug.Warning, CDebug.Error, etc.) to use the new formatting defaults and colour palette. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)
  • Rewrote the README with a quick start guide and moved legacy documentation to 0.1.0_README.md. (README.md, 0.1.0_README.md)
  • Updated the sample project dependencies (URP 17.2.0, Input System 1.14.2, IDE integrations, etc.) to align with the new demo scene. (Packages/manifest.json)

Removed

  • Removed legacy CDebugTag, CDebugTagType, and TryAddTag APIs along with the fixed-parameter CDebug.Log overloads. (Assets/Plugins/CustomUnityDebug/Runtime/CDebugTag.cs, Assets/Plugins/CustomUnityDebug/Runtime/CDebugTagType.cs)

0.1.0

Choose a tag to compare

@ogg17 ogg17 released this 24 Oct 16:06

First Release

  • The basic concept has been created
  • The first version has been implemented