2025-02-18 10:30:11 -05:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Lean.Pool;
|
|
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
2025-08-31 15:27:02 +08:00
|
|
|
using UnityEngine.UI;
|
2025-02-18 10:30:11 -05:00
|
|
|
|
|
|
|
|
namespace Ichni.Editor
|
|
|
|
|
{
|
|
|
|
|
public class LogText : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public TMP_Text logText;
|
2025-08-31 15:27:02 +08:00
|
|
|
|
2025-02-18 10:30:11 -05:00
|
|
|
public void SetLogText(string text, Color color)
|
|
|
|
|
{
|
|
|
|
|
logText.text = text;
|
|
|
|
|
logText.color = color;
|
2025-08-31 15:27:02 +08:00
|
|
|
|
2025-02-18 10:30:11 -05:00
|
|
|
string logFilePath = EditorManager.instance.projectInformation.projectPath + "/Logs/EditorLog.txt";
|
2025-08-31 15:27:02 +08:00
|
|
|
|
2025-02-18 10:30:11 -05:00
|
|
|
// if(!ES3.FileExists(logFilePath)) System.IO.File.Create(logFilePath).Dispose();
|
|
|
|
|
//
|
|
|
|
|
// System.IO.File.AppendAllText(logFilePath, text + "\n");
|
|
|
|
|
}
|
2025-08-31 15:27:02 +08:00
|
|
|
|
|
|
|
|
|
2025-02-18 10:30:11 -05:00
|
|
|
}
|
|
|
|
|
}
|