https://github.com/smkplus/kamalidebug
Easy way to Debug Colorful texts in Unity Console
https://github.com/smkplus/kamalidebug
csharp unity
Last synced: about 1 year ago
JSON representation
Easy way to Debug Colorful texts in Unity Console
- Host: GitHub
- URL: https://github.com/smkplus/kamalidebug
- Owner: smkplus
- License: mit
- Created: 2019-10-15T13:20:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T10:48:46.000Z (over 6 years ago)
- Last Synced: 2025-03-27T12:23:59.494Z (about 1 year ago)
- Topics: csharp, unity
- Language: C#
- Homepage:
- Size: 9.69 MB
- Stars: 83
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KamaliDebug
Easy way to Debug Colorful Texts in Unity Console
### Example 1

```
private void Start()
{
DebugX.Log(@"I:orange:b; love:red:b; Unity:yellow:b;
ColorfullllllllllllllllText:rainbow:b;");
DebugX.Log("sniper:orange:b; bug:green:b;");
}
```
### Example 2

```
using UnityEngine;
using KamaliDebug;
public class Example : MonoBehaviour
{
public int score;
public int health;
private void Start()
{
DebugX.Log($"Score = {score}:yellow:b;");
DebugX.Log($"Health = {health}:green:b;");
}
}
```
### Syntax
```(Text or Emoji):Color:TextStyle;```
### Font Color
```DebugX.Log("Hello world:green;");```

### Font Style
* b = Bold
* i = Italic
```DebugX.Log("Hello:b; World:i;");```

### Emoji
```DebugX.Log("love:red:b; love:red:b; love:red:b;");```

### Complex
```DebugX.Log("Hello:yellow:b; world:red:b;");```

___________
ToDo:
1.optimization ( I call a regex per Debug.LogX I should prevent this in build).
2.Add more fontstyles , colors and emojis
3.Make ScriptableObject for Colors