UI 툴킷 디버거는 UI 요소를 실시간으로 검사하고 디버깅하는 데 사용할 수 있는 툴입니다.UI 계층 구조를 시각적으로 표현합니다.이를 사용하여 각 UI 요소의 상태와 프로퍼티를 검사할 수 있습니다.
UI 툴킷 디버거를 열면 UI 계층 구조의 라이브 뷰를 보여주는 창이 표시됩니다.계층 구조에서 아무 요소나 선택하여 해당 프로퍼티 및 상태를 검사할 수 있습니다.디버거는 UI 요소와 관련된 모든 오류나 경고도 표시합니다.
UI 툴킷 디버거의 주요 기능 중 하나는 UI 요소에 적용된 스타일을 보고 편집할 수 있는 기능입니다.이 작업은 특정 요소에 적용된 모든 스타일 프로퍼티를 볼 수 있는 스타일 인스펙터를 통해 수행됩니다.또한 이러한 프로퍼티를 실시간으로 편집하여 UI에 미치는 영향을 확인할 수 있습니다.
참고:디버거에서 스타일을 편집하면 라이브 요소 자체의 인라인 스타일만 변경되며, 변경 사항은 어디에도 저장되지 않고 다음 UI 재생성 시 손실됩니다.
UI 툴킷 디버거를 사용하려면 다음을 수행하십시오.
Window > UI Toolkit > Debugger를 선택하여 UI Toolkit Debugger 창을 엽니다.
다음을 수행합니다.
UI Toolkit Debugger 창에서 Pick Element를 선택합니다.
UI 빌더의 Canvas 또는 게임 뷰에서 디버깅할 요소를 선택합니다.UI Toolkit Debugger 창에 UI 계층 구조의 라이브 뷰가 열리며 다음이 표시됩니다.
VisualElement
의 모든 자식 요소VisualElement
의 각 컴포넌트에 대한 모든 USS 선택자팁:UI 빌더 또는 게임 뷰에서 ⋮를 클릭한 다음 UI Toolkit Debugger를 선택하여 UI 툴킷 디버거 창을 열 수도 있습니다.
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.