본문 바로가기
아때(unity)

유니티) Scoped registries

by 때려쳐아니때려치지마 2023. 6. 28.
반응형

https://docs.unity3d.com/2021.3/Documentation/Manual/upm-scoped.html

 

Unity - Manual: Scoped registries

Scoped registries Scoped registries allow Unity to communicate the location of any custom package registry server to the Package Manager so that the user has access to several collections of packages at the same time. Here are some important concepts to he

docs.unity3d.com

Scoped registries란?

유니티에서 커스텀 패키지를 관리하는것이다.

구글링하다보면 유저가 만든 유니티 기능을 배포할때 scoped registry를 통해 배포하는걸 볼수있을 것이다.

이렇게 패키지를 배포하고 받을때 쓰는것이 scoped registries이다.

name, url, scope 프로퍼티를 통해 manifest에서 관리된다.

위 프로퍼티를 통해서 패키지의 레지스트리가 결정되는것이다.

scopedRegistries를 사용하는 예시이다.

혹은 project settings > package manager 에서 추가하거나 삭제할수있다.


https://github.com/hecomi/uDesktopDuplication

 

GitHub - hecomi/uDesktopDuplication: Desktop Duplication API implementation for Unity (only for Windows 8/10)

Desktop Duplication API implementation for Unity (only for Windows 8/10) - GitHub - hecomi/uDesktopDuplication: Desktop Duplication API implementation for Unity (only for Windows 8/10)

github.com

예시로 위 링크에서 패키지를 가져와보면서 과정을 정리해본다.

설치 과정을 따라서 유니티 패키지를 다운받고 git url로 패키지를 다운받는다.

입력하고 save누르면

manifest에 저장이 되어있다.

이제 패키지에 액세스 할 수 있기 때문에 배포 받은 기능을 사용할 수 있게 된다.

반응형

댓글