버튼 컨트롤은 사용자의 클릭에 반응하고, 액션을 시작하거나 확인하는 데 사용됩니다. 익숙한 예로는 웹 양식에 사용되는 Submit 및 Cancel 버튼 등이 있습니다.
프로퍼티: | 기능: |
---|---|
Interactable | Interactable를 활성화하면 이 버튼이 입력을 허용합니다. 자세한 내용은 인터랙터블 API 문서를 참조하십시오. |
Transition | 컨트롤이 사용자 행동에 시각적으로 어떻게 반응하는지 결정하는 프로퍼티입니다. 전환 옵션을 참조하십시오. |
Navigation | 컨트롤 순서를 결정하는 프로퍼티입니다. 내비게이션 옵션을 참조하십시오. |
프로퍼티: | 기능: |
---|---|
On Click | 사용자가 버튼을 클릭한 후 놓으면 Unity가 호출하는 UnityEvent입니다. |
버튼은 사용자가 이 버튼을 클릭하고 놓으면 작업을 시작하도록 설계되었습니다. 클릭한 후 놓기 전에 마우스를 버튼 컨트롤 밖으로 이동하면 작업이 수행되지 않습니다.
버튼에는 사용자가 클릭을 완료하면 반응하는 On Click 이라는 이벤트가 하나 있습니다. 일반적인 이용 사례는 다음과 같습니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.