본문 바로가기
개발/Unity

Unity)Unity 로드 할 패키지 관리(Packages/manifest)

by 테샤르 2021. 12. 21.

Unity 로드 할 패키지 관리(Packages/manifest)

 

Unity 가 프로젝트를 Open 하는 과정에서 패키지 관리자에 등록되어있으면 로드하는데 그 로드할 패키지를 관리하는 프로젝트 매니페스트이다.

 

Unity 프로젝트 Root / Packages/manifest.json 파일이다.

 

대략 파일은 이런 형태로 구성되어있다.

{
  "registry": "https://my.registry.com",
  "scopedRegistries": [{
    "name": "My internal registry",
    "url": "https://my.internal.registry.com",
    "scopes": [
      "com.company"
    ]
  }],
  "dependencies": {
    "com.unity.package-1": "1.0.0",
    "com.unity.package-2": "2.0.0",
    "com.unity.package-3": "3.0.0",
    "com.unity.my-local-package": "file:/path/to/com.unity.my-local-package",
    "com.unity.my-git-package": "https://my.repository/my-package.git#v1.2.3"
  },
  "lock": {
    "com.unity.my-git-package": {
       "hash": "9e72f9d5a6a3dadc38d813d8399e1b0e86781a49",
       "revision": "v1.2.3"
    }
  },
  "testables": [ "com.unity.package-1", "com.unity.package-2" ]
}

관리될 패키지가 생기면 dependencise 항목에 추가해주면 된다.

예시로는 다음과 같다.

 

dependencise:
"com.coffee.atlas-image": "https://github.com/mob-sakai/AtlasImage.git",

 

Unity Project Manifest : [링크]

 

프로젝트 매니페스트 - Unity 매뉴얼

When Unity loads a project, the Unity Package Manager reads the project manifest so that it can compute a list of which packages to load. When a user installs or uninstalls a package through the Package Manager window, the Package Manager stores those chan

docs.unity3d.com

 

★☆☆☆☆

 

반응형

댓글