Inspector Secondary Window & QuickCopy

inspector的二级界面,主要用于工具制作。
重新制作了Track的QuickCopy功能
This commit is contained in:
SoulliesOfficial
2025-02-21 01:03:01 -05:00
parent 039bc5bddf
commit cd9ef00d13
50 changed files with 2332 additions and 229 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame;
using TMPro;
using UnityEngine;
namespace Ichni.Editor
{
public class DynamicUIGetterInputField : DynamicUIElement
{
public TMP_InputField inputField;
public void SetDefaultText(string text)
{
inputField.text = text;
}
public T GetResult<T>()
{
return (T)System.Convert.ChangeType(inputField.text, typeof(T));
}
public string GetResult()
{
return inputField.text;
}
}
}