Inspector Secondary Window & QuickCopy
inspector的二级界面,主要用于工具制作。 重新制作了Track的QuickCopy功能
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user