기본적으로 UI 빌더는 플레이어 빌드에서 런타임 시 사용하기 위해 UI가 생성된다고 간주합니다. 따라서 UI 빌더에서 생성된 모든 새 UI 문서(UXML)는 UXML 내에 해당 문서를 런타임 전용 UI로 표시하는 설정이 저장되어 있습니다. 이러한 설정의 주요한 효과는 Library 창의 Standard 탭이 런타임 시 최적으로 작동하는 요소만을 포함하도록 필터링되는 것입니다.
커스텀 에디터 창이나 커스텀 인스펙터와 같은 Unity 에디터용 UI를 만들려면 UI 문서(UXML)에서 Editor Extension Authoring을 활성화해야 합니다. 다음 두 가지 방법으로 확장 프로그램 저작을 활성화할 수 있습니다.
여타 Canvas 설정과 달리, 이 설정은 editor-extension-mode
라는 <UXML>
루트 태그 속성을 사용하여 UI 문서(UXML)의 일부로 저장됩니다.
Editor Extension Authoring을 활성화하면 Library 창의 Standard 탭에 추가 요소가 표시됩니다. 에디터 전용 요소에는 Editor Only
표시가 있습니다.
새 UI 문서(UXML)에서 Editor Extension Authoring의 기본 설정을 설정하려면 다음 단계를 따르십시오.
UI 빌더에서 연 모든 UI 문서(UXML)에는 에디터 확장 프로그램 저작 속성이 있습니다. UI 빌더는 다음 예와 같이 UI 문서 루트 태그에 속성을 추가합니다.
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
참고 |
---|
에디터 확장 저작 속성은 UI 문서(UXML) 파일에 저장되었으므로 버전이 컨트롤됩니다. 새 UI 문서(UXML)를 만들 때 UI 빌더는 UI 빌더 프로젝트 설정에 지정된 기본값에 따라 에디터 확장 프로그램 저작 속성을 설정합니다. |
예를 들어 텍스트 에디터나 IDE 등 UI 빌더 외부에서 만든 UI 문서(UXML)는 UI 빌더에서 열어야만 에디터 확장 프로그램 저작 속성이 생깁니다. 외부에서 만든 UI 문서(UXML)를 처음으로 UI 빌더에서 열면 에디터 확장 프로그램 저작 속성이 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.