增加A2WToolBox工具集,增加Launch场景核LaunchPanel

This commit is contained in:
Wurui
2025-11-08 11:06:48 +08:00
parent 3e92e5684a
commit 3b43829e85
726 changed files with 87807 additions and 215 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ccff9b6b620513f45ad9ede1c794e77b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,106 @@
using System;
using System.Diagnostics;
namespace UnityEngine
{
public static class Console
{
private const string infoColor = nameof(Color.white);
private const string warningColor = nameof(Color.yellow);
private const string errorColor = nameof(Color.red);
[Conditional("DEBUG")]
public static void Log(object message)
{
Debug.Log(FormatMessage(infoColor, message));
}
[Conditional("DEBUG")]
public static void Log(string category, object message)
{
Debug.Log(FormatMessageWithCategory(infoColor, category, message));
}
[Conditional("DEBUG")]
public static void LogFormat(string format, params object[] args)
{
Debug.Log(FormatMessage(infoColor, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogFormat(string category, string format, params object[] args)
{
Debug.Log(FormatMessageWithCategory(infoColor, category, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogWarning(object message)
{
Debug.LogWarning(FormatMessage(warningColor, message));
}
[Conditional("DEBUG")]
public static void LogWarning(string category, object message)
{
Debug.LogWarning(FormatMessageWithCategory(warningColor, category, message));
}
[Conditional("DEBUG")]
public static void LogWarningFormat(string format, params object[] args)
{
Debug.LogWarningFormat(FormatMessage(warningColor, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogWarningFormat(string category, string format, params object[] args)
{
Debug.LogWarningFormat(FormatMessageWithCategory(warningColor, category, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogError(object message)
{
Debug.LogError(FormatMessage(errorColor, message));
}
[Conditional("DEBUG")]
public static void LogError(string category, object message)
{
Debug.LogError(FormatMessageWithCategory(errorColor, category, message));
}
[Conditional("DEBUG")]
public static void LogErrorFormat(string format, params object[] args)
{
Debug.LogErrorFormat(FormatMessage(errorColor, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogErrorFormat(string category, string format, params object[] args)
{
Debug.LogErrorFormat(FormatMessageWithCategory(errorColor, category, string.Format(format, args)));
}
[Conditional("DEBUG")]
public static void LogException(Exception exception)
{
Debug.LogError(FormatMessage(errorColor, exception.Message));
}
[Conditional("DEBUG")]
public static void LogException(string category, Exception exception)
{
Debug.LogError(FormatMessageWithCategory(errorColor, category, exception.Message));
}
private static string FormatMessage(string color, object message)
{
return $"<color={color}>{message}</color>";
}
private static string FormatMessageWithCategory(string color, string category, object message)
{
return $"<color={color}><b>[{category}]</b> {message}</color>";
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 67f6b5564e5f48d4eb1956eee91278c2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,3 @@
{
"name": "UnityLoggerExtended"
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3cc831f8a91a3244a9d36987e1976835
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: