Paint Holes 툴을 사용하여 터레인의 일부를 숨길 수 있습니다. 즉 동굴, 절벽 등과 같은 지형을 만들기 위해 터레인에 구멍을 페인팅할 수 있습니다.
이 툴에 액세스하려면 Paint Terrain 아이콘을 클릭한 후 드롭다운 메뉴에서 Paint Holes를 선택하십시오.
오버레이에서 Paint Holes에 액세스하려면 다음과 같이 하십시오.
구멍을 페인팅하려면 터레인 위로 커서를 클릭한 후 드래그하십시오. 터레인에서 구멍을 삭제하려면 Shift 키를 누른 상태로 클릭한 후 드래그하면 됩니다. 툴 크기를 조정하려면 Brush Size 슬라이더를 사용하십시오. Opacity 슬라이더는 터레인에 적용할 브러시의 강도를 결정합니다.
내부적으로 Unity는 텍스처를 사용하여 터레인 표면의 불투명도 마스크를 정의합니다. Paint Holes 툴을 사용하여 터레인에 페인팅하면 이 텍스처가 수정됩니다. 따라서 사용되는 터레인 머티리얼이 이 마스크를 기반으로 텍셀을 자르거나 폐기할 때에만 페인트하는 구멍이 표시됩니다.
이 툴은 텍스처를 사용하기 때문에 페인팅하는 구멍 주변에 앨리어싱된 모서리가 보일 수 있습니다. 예를 들어 동굴을 만들 경우 바위 메시 등과 같은 다른 지오메트리를 사용하여 구멍의 앨리어싱된 모서리를 숨길 수 있습니다.
터레인 구멍은 조명, 물리 및 NavMesh 베이크에 사용할 수 있습니다. Unity는 구멍을 페인팅하는 영역의 터레인 정보를 폐기하여 조명, 터레인 콜라이더 및 베이크된 NavMesh의 정확도를 높입니다.
물리 콜라이더를 지원하기 위해 구멍의 마스크 텍스처 해상도가 터레인의 하이트맵 –1의 해상도와 같습니다.
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.