Unity 패키지 관리자는 레지스트리에서 패키지 콘텐츠와 메타데이터를 다운로드할 때 전역 캐시를 저장 장소로 사용합니다. 이렇게 하면 패키지를 더욱 효율적으로 재사용하거나 공유할 수 있고, 오프라인에서도 저장된 패키지를 설치하고 업데이트할 수 있습니다.
참고: 전역 캐시는 에셋 스토어에 있는 .unitypackage
포맷에 패키지를 포함하지 않습니다. 패키지 관리자는 별도의 캐시에 이러한 패키지 타입을 저장합니다. 자세한 내용은 에셋 스토어 패키지를 참조하십시오.
기본적으로 Unity는 전역 캐시를 운영체제(및 Windows의 사용자 계정 타입)에 기반하는 루트 디렉토리에 저장합니다.
운영체제 | 기본 루트 디렉토리 |
---|---|
Windows(사용자 계정) | %LOCALAPPDATA%\Unity\cache |
Windows(시스템 사용자 계정) | %ALLUSERSPROFILE%\Unity\cache |
macOS | $HOME/Library/Unity/cache |
Linux | $HOME/.config/unity3d/cache |
팁:이 루트 디렉토리의 위치를 오버라이드할 수 있습니다.자세한 내용은 전역 캐시 위치 커스터마이즈를 참조하십시오.
패키지 관리자 전역 캐시는 각각 다른 목적에 사용되는 두 개의 서로 다른 보조 캐시를 사용합니다. 패키지 관리자는 이러한 보조 캐시를 전역 캐시 폴더 아래의 하위 디렉토리에 저장합니다.
하위 폴더 | 설명 |
---|---|
npm |
npm 프로토콜을 사용하여 레지스트리에서 획득한 데이터를 저장합니다. 여기에는 패키지 메타데이터와 패키지 타르볼이 포함됩니다. |
packages |
이 캐시에는 레지스트리에서 가져온 패키지 타르볼의 비압축 콘텐츠가 들어 있습니다. |
이러한 각 하위 폴더 내에서 각 레지스트리는 다른 레지스트리에서 호스트되는 패키지들이 섞이지 않도록 고유한 경로를 사용합니다.
팁:이러한 폴더의 위치를 오버라이드할 수 있습니다.자세한 내용은 전역 캐시 위치 커스터마이즈를 참조하십시오.
Unity 에디터 프로세스를 실행하는 사용자 계정은 루트 디렉토리와 해당 콘텐츠에 대한 완전한 쓰기 권한을 보유해야 합니다. 이러한 권한이 없으면 패키지 관리자가 패키지 메타데이터 및 콘텐츠를 캐시에 다운로드하거나 저장할 수 없습니다.
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.