Releases: ogg17/CustomUnityDebug
Releases · ogg17/CustomUnityDebug
Release list
2.0.0
Changelog
[2.0.0] - 2026-08-12
Breaking
- Replaced the composable
BaseCTag/CTag/paramsobject API with a prefix markup mini-language:&name;/&name(overrides);, then raw message body. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs) CDebug.Lognow takes a markupstring(plus optional Unitycontextandstring.Formatargs 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 withCDebug.RegisterTag/TagRegistryinstead. (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 todefaultstyle with the name as display text. - Override tokens for TextType, Brackets, Spacers, LogType, TextCase (
upper/lower/asis), named colors, and#RRGGBB/#RRGGBBAA(viaColorUtility.TryParseHtmlString). CDebug.TryFormatto compose rich text without emitting to the console. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)CDebug.LogWarning/CDebug.LogErrorto force the Unity log channel. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs)CDebug.RegisterColor/ColorTokensfor UnityColor.*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
CDebugSettingsremains the home forDebugEnabled,DebugFirstTagAlwaysDefault,DisableAllMessageWithTag, and body style viaDefaultText(now aTagPreset). (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 intoColorTokens. - README rewritten for the markup API. (
README.md) - Kept
StringBuilderPoolfor GC-friendly message building. (Assets/Plugins/CustomUnityDebug/Runtime/StringBuilderPool.cs)
Removed
- Removed
BaseCTag,CTag,CTagExtensions, and object-basedCDebug.Log(params …)overloads. - Removed legacy
0.1.0_README.md(superseded by the current README).
1.0.0
Changelog
[1.0.0] - 2025-10-24
Breaking
- Replaced the enum-driven
CDebugTag/CDebugTagTypesystem with the composableBaseCTag/CTagpipeline;CDebug.Lognow accepts any number of tag elements and selects the highestLogTypeautomatically. (Assets/Plugins/CustomUnityDebug/Runtime/CDebug.cs) - Moved runtime switches into
CDebugSettings; useCDebugSettings.DebugEnabled,DebugFirstTagAlwaysDefault,DisableAllMessageWithTag, andCTag.SetEnabledinstead of the removedCDebug.DebugEnabled,AlwaysDefaultTag,BoldMessageText, andCDebug.SetTagEnabled. (Assets/Plugins/CustomUnityDebug/Runtime/CDebugSettings.cs)
Added
- Introduced
Masev.CustomUnityDebug.TextFormattingwith 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, andTryAddTagAPIs along with the fixed-parameterCDebug.Logoverloads. (Assets/Plugins/CustomUnityDebug/Runtime/CDebugTag.cs, Assets/Plugins/CustomUnityDebug/Runtime/CDebugTagType.cs)