Unity는 프로젝트의 쉬운 통합 버전 관리를 위해 에셋 서버 애드온 제품을 제공하며, Perforce 및 PlasticSCM을 외부 툴로 사용할 수도 있습니다(자세한 내용은 버전 관리 통합 참조). 특정한 이유로 이러한 시스템을 사용할 수 없는 경우 Subversion 또는 Bazaar와 같은 다른 버전 관리 시스템에 프로젝트를 저장할 수 있습니다. 이를 위해서는 프로젝트의 초기 수동 설정이 필요합니다.
프로젝트를 확인하기 전에 Unity에서 외부 버전 관리 시스템에 저장 에셋을 호환시키기 위해 프로젝트 구조를 약간 변경해야 합니다. 애플리케이션 메뉴에서 Edit->Project Settings->Editor 를 선택하거나 버전 관리를 위해 드롭다운에서 Visible Meta Files 를 선택하여 실행됩니다. Unity에 요구되는 필수 부가 정보를 포함한 Assets
디렉토리에 모든 에셋의 텍스트 파일을 표시합니다. 관련된 에셋의 전체 파일 이름 중 첫 부분에 .meta
파일 확장자를 포함합니다. Unity에서 에셋을 이동하거나 이름을 변경하면 관련된 .meta
파일 또한 업데이트해야 합니다. 외부 툴에서 에셋을 이동하거나 이름을 변경하는 경우에도 관련된 .meta
파일의 동기화를 확인해야 합니다.
버전 관리 시스템에서 프로젝트를 검사할 때 Assets
, Packages
및 ProjectSettings
디렉토리를 시스템에 추가해야 합니다. Library
디렉토리는 완전히 무시해야 합니다. .meta 파일을 사용하는 경우 이 디렉토리는 임포트된 에셋의 로컬 캐시일 뿐이기 때문입니다.
새로운 에셋을 생성할 때 에셋 자체와 관련된 .meta
파일 모두 버전 관리에 추가됐는지 확인해야 합니다.
먼저 svn://my.svn.server.com/
에 하위버전 저장소가 있으며 svn://my.svn.server.com/MyUnityProject
에 프로젝트를 생성하려 한다고 가정합니다.
그런 다음, 시스템에서 초기 임포트를 생성하려면 다음 단계를 따라야 합니다.
InitialUnityProject
로 명명합니다. 여기에 초기 에셋을 추가하거나 추후에 추가할 수 있습니다.Library
디렉토리를 삭제해야 합니다.svn import -m"Initial project import" InitialUnityProject svn://my.svn.server.com/MyUnityProject
성공하는 경우 프로젝트를 하위버전으로 임포트해야 하며 원하는 경우 InitialUnityProject
디렉토리를 삭제할 수 있습니다.svn co svn://my.svn.server.com/MyUnityProject
하위 버전에서
프로젝트를 다시 확인하고 Assets
, Packages
및 ProjectSettings
디렉토리의 버전이 지정되었는지 확인합니다.Library
디렉토리가 재생성됩니다.Library
디렉토리에 대해 필터 무시를 설정합니다.
svn propedit svn:ignore MyUnityProject/
하위버전에서는 텍스트 에디터가 열릴 것입니다. Library 디렉토리를 추가해야 합니다.svn ci -m"Finishing project import" MyUnityProject
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.