maint: added livewatch asset

This commit is contained in:
Chris
2025-08-31 18:14:07 -04:00
parent 7f5d95787b
commit ae2371a6fa
385 changed files with 150792 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System.Collections.Generic;
using UnityEngine;
namespace Ingvar.LiveWatch.Editor
{
public class WatchGUICache
{
private Dictionary<string, GUIContent> _textToGUIContentCache = new();
public GUIContent GetContent(string text)
{
if (_textToGUIContentCache.TryGetValue(text, out var guiContent))
return guiContent;
guiContent = new GUIContent(text, text);
_textToGUIContentCache[text] = guiContent;
return guiContent;
}
}
}