반응형

avatar image
0
Question by martchz · '15년 Feb월 25일 AM 06시 19분 · inputsubmit

UnityException: Input Button Submit is not setup.

Hello, everyone!

Why does Unity want me to set up Input Button "Submit", although I don't actually use it? It started after I removed all default inputs, save those that I use in my game. Does Unity use some of them in some behind the curtain processes?

Thanks in advance!

-Martch

1 Reply

 · Add your reply
avatar image
6
Best Answer

Answer by goliathmb 

If you are using the new UI, there is typically an EventSystem object in the scene. It has a component called the StandAloneInputModule that has a Submit button specified by default in its setting.




https://answers.unity.com/questions/909138/unityexception-input-button-submit-is-not-setup.html







Unity를 사용하다보면, 갑자기 이런 에러가 런타임에 발생하는 경우가 있다.


그리고 이 녀석을 클릭하면, Inspector에서 다음과 같은 것을 볼 수 있다.


Standalone Input Module이라는 것이 있는데, 자세히 보면 Submit Button이라는 게 있다.

아까 에러 메시지에서 "Input Button Submit is not setup"이라고 했는데,

그러면 "Submit"이라는 녀석이 설정 안 된 것이 아닐까?


[Edit> Project Setting> Input] 메뉴로 들어가면, 상태가 어떤지 확인할 수 있다.

아하! 과연 Submit이라는 이름의 버튼이 없다.

결국 이 문제는 Submit 버튼을 정의하지 않아서 생긴 것이다.


따라서 적당히 Submit, Cancel 버튼을 만들어주면 문제는 사라진다.


실행해보면 더 이상 문제가 발생하지 않음을 알 수 있다.



http://hdnua.tistory.com/38

반응형

+ Recent posts