토글(Toggle) 컨트롤은 사용자가 옵션을 켜거나 끌 수 있도록 하는 체크박스입니다.
프로퍼티: | 기능: |
---|---|
Interactable | 컴포넌트가 입력값을 수용할지를 결정합니다. 인터랙터블을 참조하십시오. |
Transition | 컨트롤이 사용자 행동에 시각적으로 어떻게 반응하는지 결정하는 프로퍼티입니다. 전환 옵션을 참조하십시오. |
Navigation | 컨트롤 순서를 결정하는 프로퍼티입니다. 내비게이션 옵션을 참조하십시오. |
Is On | 토글의 초기 상태를 켜짐으로 할 지 여부입니다. |
Toggle Transition | 값이 변경되는 경우 토글이 그래픽적으로 반응하는 방법입니다. 옵션으로는 체크 표시가 단순히 나타나거나 사라지는 형식인 없음, 또는 체크 표시가 페이드되는 페이드 가 있습니다. |
Graphic | 체크 표시에 사용되는 이미지입니다. |
Group | 토글이 속하는 토글 그룹입니다. |
프로퍼티: | 기능: |
---|---|
On Value Changed | 토글이 클릭된 경우 호출되는 Unity 이벤트 입니다. 현재 상태를 bool 유형 동적 인수로 이벤트를 통해 보낼 수 있습니다. |
토글 컨트롤을 통해 사용자가 옵션을 키고 끄도록 할 수 있습니다. 다수의 토글을 하나의 토글 그룹으로 모아 여러 개의 옵션을 한 번에 켜도록 할 수도 있습니다.
토글은 사용자가 현재 값을 변경하면 반응하는 값의 변경 이라는 단일 이벤트가 있습니다. 새로운 값은 이벤트 함수에 boolean
파라미터로 전달됩니다. 일반적으로 토글은 다음과 같은 상황에서 사용됩니다.
Toggle 은 자식에 클릭 가능한 영역을 제공하는 부모입니다. Toggle 이 자식이 없거나, 비활성화된 경우 이는 클릭할 수 없게 됩니다.
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.