@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Lean.Pool;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
@@ -33,7 +34,12 @@ namespace Ichni.Editor
|
||||
{
|
||||
EditorManager.instance.uiManager.mainPage.logWindow.AddLog(text, color);
|
||||
}
|
||||
|
||||
public static TMP_Text LogText(string text, Color color = default)
|
||||
{
|
||||
LogWindow logWindow = EditorManager.instance.uiManager.mainPage.logWindow;
|
||||
logWindow.AddLog(text, color);
|
||||
return logWindow.logTexts[0].logText;
|
||||
}
|
||||
private void AddLog(string text, Color color = default)
|
||||
{
|
||||
LogText logText = LeanPool.Spawn(logTextPrefab, textRect).GetComponent<LogText>();
|
||||
|
||||
Reference in New Issue
Block a user