Version: 2022.1
언어: 한국어
UI 테스트
Test inside the UI Builder

스타일 디버그

If you don’t know where a style comes from, UI Toolkit offers several tools to investigate styles.

Matching Selectors

You can find the styles for an element in the Matching Selectors section in the UI Builder’s Inspector.

  1. UI 빌더의 Canvas에서 해당 요소를 선택합니다.
  2. 인스펙터 창에서 StyleSheet > Matching Selectors를 펼칩니다.

An example Matching Selectors

Matching Selectors 섹션에 다음이 표시됩니다.

  • 사용자 스타일시트의 USS 선택자
  • 기본 Unity 테마의 USS 선택자

참고:리스트에서 아래쪽에 표시되는 USS 선택자는 항상 상위 USS 선택자에서 동일한 스타일 속성을 오버라이드합니다.

UI 툴킷 디버거

If the Matching Selectors section doesn’t provide enough information, you can use the UI Toolkit Debugger.

  1. In the Viewport window of the UI Builder, click Preview to enable the Preview mode.
  2. Select Window > UI Toolkit > Debugger.
  3. UI Toolkit Debugger 창에서 Pick Element를 선택합니다.
  4. In the Canvas of the UI Builder, select the element that you want to debug.

The UI Toolkit Debugger window displays the following:

  • All child elements of the visual element
  • All USS selectors for each component of the visual element
  • 각 USS 선택자에 대한 자세한 정보

추가 리소스

UI 테스트
Test inside the UI Builder