Unity는 UnityYAML이라는 맞춤형 최적화 YAML 라이브러리를 사용합니다. UnityYAML 라이브러리는 전체 YAML 사양을 지원하지 않습니다. 이 문서는 UnityYAML이 지원하는 YAML 사양의 일부를 간략히 소개합니다.
UnityYAML 파일은 외부적으로 생성하거나 편집할 수 없습니다.
기능 | 지원 |
---|---|
매핑 | UnityYAML은 플로 스타일과 블록 스타일을 모두 지원합니다. |
스칼라 | UnityYAML은 큰따옴표 및 작은따옴표 스칼라와 플레인 스칼라를 지원합니다. 이 스칼라는 여러 개의 줄로 분할할 수 있습니다. 여러 줄의 스칼라는 파싱 프로세스 동안 성능 및 메모리 부하를 높일 수 있습니다. 여러 줄로 분할된 플레인 스칼라는 이전 줄보다 더 들여 써야 합니다. 이 표 아래의 예제를 참조하십시오. UTF–8 문자를 스칼라에 사용할 수 있지만, 큰따옴표 스칼라의 일부인 경우에만 UnityYAML이 디코딩할 수 있습니다. |
시퀀스 | UnityYAML은 매핑, 블록 스타일, 블록 매핑이 포함된 블록 시퀀스를 지원합니다. |
parent: This is a
multi-line scalar
^
|
들여쓰기를 하지 않으면 스칼라는 This is a
를 반환하고 에셋을 추가 파싱으로 트리거합니다.
기능 | 지원 |
---|---|
분할 표시 | UnityYAML does not support using + and | characters to indicate how it should treat new lines within a multi-line string. If you use these characters, UnityYAML adds them to the scalar value. |
주석 | UnityYAML은 주석을 지원하지 않습니다. |
복잡한 매핑 키 | UnityYAML은 복잡한 매핑 키를 지원하지 않습니다. |
다중 문서 | 판독기가 파일 상단의 문서 및 태그 접두사를 건너뛰지만, 여러 문서로 구성된 YAML 입력은 처리하지 않습니다. |
원시 블록 시퀀스 | 거의 모든 노드가 UnityYAML의 매핑에 속하므로 올바르게 동작하려면 모든 시퀀스가 매핑의 값이어야 합니다. 이 표 아래의 예제를 참조하십시오. 익명 시퀀스는 파서 복잡도를 증가시킵니다. 들여쓰기는 시퀀스 요소가 UnityYAML에서 완료되었는지 확인하는 데 사용할 수 없습니다. |
태그 | UnityYAML은 태그를 지원하지 않습니다. |
var:
- 1
- 2
- 3
이 시퀀스는 ‘var’ 발생 시 룩업을 위해 디자인되었으므로 다음은 작동하지 않습니다.
- 1
- 2
- 3
2019–05–13 페이지 게시됨
Unity 2019.3의 새로운 기능NewIn20193
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.