레이어는 씬에서 게임 오브젝트를 구성하는데 도움이 될 수 있습니다. 레이어를 만들고 여기에 게임 오브젝트를 할당하면 해당 레이어에 따라 게임 오브젝트가 다른 게임 오브젝트와 상호 작용하는 방식을 편집할 수 있습니다.
다음 두 가지 방법으로 새 레이어를 생성할 수 있습니다.
레이어에 의도된 기능을 기억하기 위해 설명적인 이름을 지정합니다.
경고 Layer 31은 에디터의 미리보기 창 메커니즘에서 내부적으로 사용됩니다. 충돌을 방지하기 위해 이 레이어를 사용하지 마십시오.
레이어 메뉴를 열면 일부 레이어는 이미 이름이 지정된 것을 볼 수 있습니다. Unity는 Default와 Ignore Raycast를 제외하고 특정 목적용으로 만들어진 빌트인 레이어를 더 이상 사용하지 않습니다. 이러한 레이어는 주로 이전 버전과의 호환성을 위해 존재합니다.
레이어 수 | 레이어 이름 | 설명 |
---|---|---|
1 | TransparentFX | Unity는 플레어 시스템에서 이 레이어를 사용합니다. |
2 | Ignore Raycast | 물리 레이 캐스트 API는 기본적으로 이 레이어를 무시합니다. |
3 | Water | Unity의 Unity 2018.4의 스탠다드 에셋은 이 레이어를 사용합니다. |
4 | UI | Unity UI는 이 레이어를 UI 요소의 기본 레이어로 사용합니다. |
이러한 레이어는 계속 사용할 수 있지만 이름을 바꾸거나 삭제할 수는 없습니다.
레이어에 게임 오브젝트를 할당하려면 게임 오브젝트를 선택하고 인스펙터 창으로 이동하여 Layer 옆에 있는 드롭다운을 선택합니다. 이 메뉴에는 이름이 있는 레이어가 표시되므로 게임 오브젝트에 가장 적합한 레이어를 선택할 수 있습니다.
각 게임 오브젝트는 하나의 레이어에만 할당할 수 있지만 한 레이어에 여러 개의 게임 오브젝트를 추가할 수 있습니다.
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.