com.alicizax.unity.framework/Runtime/Debugger/DebuggerComponent.PathInformationWindow.cs

27 lines
1.2 KiB
C#
Raw Normal View History

using System;
2025-09-05 19:46:30 +08:00
using UnityEngine;
using UnityEngine.UIElements;
2025-09-05 19:46:30 +08:00
namespace AlicizaX.Debugger.Runtime
{
public sealed partial class DebuggerComponent
{
private sealed class PathInformationWindow : PollingDebuggerWindowBase
2025-09-05 19:46:30 +08:00
{
protected override void BuildWindow(VisualElement root)
2025-09-05 19:46:30 +08:00
{
VisualElement section = CreateSection("Path Information", out VisualElement card);
card.Add(CreateRow("Current Directory", Utility.Path.GetRegularPath(Environment.CurrentDirectory)));
card.Add(CreateRow("Data Path", Utility.Path.GetRegularPath(Application.dataPath)));
card.Add(CreateRow("Persistent Data Path", Utility.Path.GetRegularPath(Application.persistentDataPath)));
card.Add(CreateRow("Streaming Assets Path", Utility.Path.GetRegularPath(Application.streamingAssetsPath)));
card.Add(CreateRow("Temporary Cache Path", Utility.Path.GetRegularPath(Application.temporaryCachePath)));
#if UNITY_2018_3_OR_NEWER
card.Add(CreateRow("Console Log Path", Utility.Path.GetRegularPath(Application.consoleLogPath)));
#endif
root.Add(section);
2025-09-05 19:46:30 +08:00
}
}
}
}