25 lines
718 B
C#
25 lines
718 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Lean.Pool;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.Editor
|
|
{
|
|
public class LogText : MonoBehaviour
|
|
{
|
|
public TMP_Text logText;
|
|
|
|
public void SetLogText(string text, Color color)
|
|
{
|
|
logText.text = text;
|
|
logText.color = color;
|
|
|
|
string logFilePath = EditorManager.instance.projectInformation.projectPath + "/Logs/EditorLog.txt";
|
|
|
|
// if(!ES3.FileExists(logFilePath)) System.IO.File.Create(logFilePath).Dispose();
|
|
//
|
|
// System.IO.File.AppendAllText(logFilePath, text + "\n");
|
|
}
|
|
}
|
|
} |