OffMeshLink 컴포넌트는 걸을 수 있는 표면만으로는 표현할 수 없는 네비게이션 단축키를 구체화할 수 있도록 해 줍니다. 예를 들어, 도랑이나 울타리를 뛰어넘는 경우나 문을 열어야 걸어 지나갈 수 있을 경우, 이런 동작을 오프 메시 링크로 묘사할 수 있습니다.
프로퍼티 | 기능 |
---|---|
Start | 오프 메시 링크의 시작 지점을 나타내는 오브젝트입니다. |
End | 오프 메시 링크의 시작 지점을 나타내는 오브젝트입니다. |
Cost Override | 값이 양수이면 패스 요청을 처리하는 데 드는 패스 비용 산출에 이 값을 사용합니다. 그 외의 경우 디폴트 비용이 사용됩니다(게임 오브젝트가 속한 영역의 코스트). 비용 오버라이드 값이 3.0으로 설정되면, 디폴트 내비메시 영역에서 이동하는 경우에 비해 오프 메시 링크를 통해 같은 거리를 이동할 경우 비용이 세 배가 됩니다. 비용 오버라이드가 유용한 경우는, 에이전트가 걷기를 보통 선호하지만 걸어가면 거리가 더 길어지는 상황 때문에 오프 메시 링크를 이용하도록 만들고자 할 때입니다. |
Bi-Directional | 옵션을 활성화하면, 오프 메시 링크에서 양방향으로 이동할 수 있습니다. 비활성화하면 시작 에서 끝 방향으로만 이동할 수 있습니다. |
Activated | 링크를 경로 탐색에 사용할 것인지 여부를 설정합니다(거짓인 경우 무시됨). |
Auto Update Positions | 옵션을 활성화하면, 오프 메시 링크의 끝 지점이 이동할 때 내비메시에 재연결됩니다. 비활성화하면 링크는 끝 지점이 이동하더라도 시작 지점에 계속 머무릅니다. |
Navigation Area | 링크의 네비게이션 영역 타입을 나타냅니다. 이 영역 타입을 통해 일반 횡단 비용을 유사한 영역 타입에 적용할 수 있으며, 특정 캐릭터가 해당 에이전트의 영역 마스크에 기반한 오프 메시 링크에 접근하는 것을 막을 수 있습니다. |
에이전트가 오프 메시 링크를 따라 이동하지 않는다면 양 끝 지점이 제대로 연결되어 있는지 확인해야 합니다. 올바르게 연결된 끝 지점은 액세스 포인트 주위에 원형으로 표시가 나타납니다.
또 다른 원인으로 내비메시 에이전트의 에어리어 마스크 가 오프 메시 링크 영역을 포함하지 않았을 수도 있습니다.
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.