添加Vec3InputField和其预制件

代码要改,还没写好,而且我不知道为什么在inputField那里的方法不管用,transform的GetFields()都是空的
This commit is contained in:
2025-02-12 17:57:26 +08:00
parent 675c571e86
commit cbbfc624d6
15 changed files with 2445 additions and 12 deletions

View File

@@ -25,7 +25,9 @@ namespace Ichni.Editor
private int historycount=0;
public GameObject ConsoleUI;
public Hierarchy hierarchy;
public Inspector inspector;
bool isHide=false;
public void GetChange(string change){
@@ -42,6 +44,11 @@ namespace Ichni.Editor
}catch(Exception e){Debug.LogWarning("WTF Command! "+e);}
}
private void Update(){
if(Input.GetKeyDown(KeyCode.BackQuote)){
hierarchy.gameObject.SetActive(isHide);
inspector.gameObject.SetActive(isHide);
isHide=!isHide;
}
if(InputCommand.isFocused){
if(Input.GetKeyDown(KeyCode.DownArrow)){
if(historyCommand.Count-1>historycount){