선택 가능한 컴포넌트 내에는 상태에 따라 다양한 전환 옵션이 있습니다. 상태로는 일반(normal), 강조(highlighted), 눌림(pressed), 비활성화(disabled)가 있습니다.
전환 옵션: | 기능: |
---|---|
None | 상태 효과가 없는 버튼에 사용하는 옵션입니다. |
Color Tint | 상태에 따라 버튼의 컬러를 변화시킵니다. 각 상태별로 컬러를 선택할 수도 있고, 다른 상태로 바뀔 때까지 걸리는 시간을 설정할 수도 있습니다. 값을 높게 설정할수록 다른 컬러로 바뀔 때까지 걸리는 시간이 길어집니다. |
Sprite Swap | 현재 버튼 상태에 따라 서로 다른 스프라이트를 표시할 수 있고, 스프라이트를 커스터마이즈할 수도 있습니다. |
Animation | 버튼 상태에 따라 애니메이션이 실행되도록 합니다. 애니메이터 컴포넌트가 있어야만 애니메이션 전환을 사용할 수 있습니다. 루트 모션이 비활성화되어 있는지 확인해야 합니다. 애니메이션 컨트롤러를 생성하려면, 애니메이션 생성을 클릭하거나 스스로 애니메이션을 생성한 후, 버튼 애니메이터 컴포넌트에 애니메이션 컨트롤러를 추가해야 합니다. |
각각의 전환 옵션(None 제외)은 전환을 제어할 수 있도록 추가 옵션을 제공합니다. 아래에서 자세하게 설명합니다.
프로퍼티: | 기능: |
---|---|
Target Graphic | 상호작용 컴포넌트에 사용되는 그래픽입니다. |
Normal Color | 컨트롤의 일반 컬러입니다. |
Highlighted Color | 강조된 경우 컨트롤의 컬러입니다. |
Pressed Color | 눌렀을 때 컨트롤의 컬러입니다. |
Disabled Color | 비활성화된 경우 컨트롤의 컬러입니다. |
Color Multiplier | 각 전환의 틴트 컬러를 고유 값에 곱합니다. 이를 통해 베이스 컬러가 백색 아래인 경우, 또는 풀 알파 아래인 경우, 그래픽 요소의 컬러 또는 알파 채널을 1 이상의 값을 사용해 밝게 만들 수 있습니다. |
Fade Duration | 다른 상태로 바뀔 때까지 걸리는 시간을 초로 나타낸 값입니다. |
프로퍼티: | 기능: |
---|---|
Target Graphic | 사용할 일반 스프라이트입니다. |
Highlighted Sprite | 컨트롤이 강조될 때 사용할 스프라이트입니다. |
Pressed Sprite | 컨트롤을 눌렀을 때 사용할 스프라이트입니다. |
Disabled Sprite | 컨트롤이 비활성화됐을 때 사용할 스프라이트입니다. |
프로퍼티: | 기능: |
---|---|
Normal Trigger | 사용할 일반 애니메이션 트리거입니다. |
Highlighted Trigger | 컨트롤이 강조될 때 사용할 트리거입니다. |
Pressed Trigger | 컨트롤을 눌렀을 때 사용할 트리거입니다. |
Disabled Trigger | 컨트롤이 비활성화됐을 때 사용할 트리거입니다. |
SelectableTransition
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.