패키지 액세스를 일부 사용자들로 제한하거나, 폐색망 조직에 패키지 레지스트리 서버를 설정하려는 경우 자체 패키지 레지스트리 서버를 설정할 수 있습니다.
패키지 개발을 마친 후 다른 사용자들에게 공유하려는 경우 다음과 같은 여러 옵션을 이용할 수 있습니다.
Compressed file | zip 파일을 다른 Unity 사용자에게 배포할 수 있습니다.이렇게 하면 다른 사용자가 본인 컴퓨터의 로컬 폴더에 zip 파일의 압축을 해제한 후 디스크에서 패키지로 설치할 수 있습니다. |
Tarball | tarball 파일을 다른 Unity 사용자에게 배포할 수 있습니다.이렇게 하면 다른 사용자가 직접 로컬 tarball로 패키지를 설치할 수 있습니다. |
Git URL | 지원되는 프로토콜 중 하나를 사용하여 Git 저장소에 링크를 배포할 수 있습니다. 그러면 사용자들이 Git URL을 사용하여 패키지를 설치할 수 있습니다. 이때 Unity 패키지 관리자는 GitHub, GitLab 등과 같은 Git 저장소 호스팅 서비스를 사용하여 패키지를 페치할 수 있습니다. |
Scoped Registry | 패키지 레지스트리 서버를 설정하여 패키지를 호스트한 후 npm 퍼블리시 커맨트를 사용하여 해당 레지스트리에 퍼블리시할 수 있습니다.그런 다음 패키지 소비자는 프로젝트에 범위 지정 레지스트리 설정을 수행하여 자체 패키지 레지스트리에서 커스텀 패키지를 페치할 수 있습니다.Unity 패키지 관리자는 npm 프로토콜에 따라 레지스트리를 지원합니다.선택한 레지스트리 서버가 /-/v1/search 또는 /-/all 엔드포인트를 구현하는지 확인해야 합니다.경고:자체 패키지 레지스트리 서버를 설정할 때는 Unity의 범위 지정 레지스트리와 호환되는 기능만 사용해야 합니다.예를 들어 Unity는 npm 이 지원하는 @scope 를 사용한 네임스페이스를 지원하지 않습니다.대부분의 경우 로컬 네트워크 내의 익명 액세스는 보안 요구 사항을 충분히 충족합니다.하지만 범위 지정 레지스트리를 통해 패키지에 접근하는 사람을 더욱 세부적으로 제어하고자 할 경우 특정 사용자에 대해 npm 인증을 활성화할 수 있습니다.그러면 패키지 고객은 범위 지정 레지스트리 설정을 수행하여 npm 인증 토큰을 사용할 수 있습니다. |
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.