Unity는 Visual Studio용 코드 에디터 패키지를 통해 Microsoft Visual Studio와 통합됩니다. 이 패키지는 Unity를 설치할 때 사전 설치됩니다. Unity를 설치할 때 Visual Studio가 설치되어 있으면 Unity는 기본적으로 Visual Studio를 사용하여 스크립트를 열고 편집합니다.
Unity를 설치할 때 Visual Studio가 설치되어 있거나 Unity 설치 프로세스의 일부로 Visual Studio를 설치하는 경우 Unity는 자동으로 Visual Studio를 기본 스크립트 에디터로 사용합니다. Visual Studio를 기존 Unity 설치에 모듈로 설치할 수 있습니다. 자세한 내용은 Unity Hub를 사용하여 에디터와 모듈 다운로드 및 설치를 참조하십시오.
기본 스크립트 에디터를 수동으로 설정하려면 다음 단계를 따르십시오.
A: 선택한 스크립트 에디터의 이름과 버전을 표시하는 External Script Editor 드롭다운 메뉴입니다.
B: 선택한 스크립트 에디터와 통합되는 Unity 패키지의 이름 및 버전입니다.
Unity는 Visual Studio의 C# 컴파일러를 사용하여 스크립트를 컴파일합니다. Visual Studio 에디터 패키지를 Visual Studio와 함께 사용하면 Unity와 Visual Studio 모두 스크립트의 모든 오류에 대한 세부 정보를 표시합니다.
Unity는 Visual Studio .sln 및 .csproj 파일을 자동으로 생성하고 유지합니다. 위 스크린샷처럼 Preferences 창의 External Tools 메뉴에서 Unity가 프로젝트의 특정 요소에 대해 .csproj 파일을 생성하는지 여부를 제어할 수 있습니다. Unity가 특정 옵션에 대해 .csproj 파일을 생성하는지 여부를 토글하려면 체크박스를 활성화 또는 비활성화하십시오.
Unity는 기여자가 파일 상태를 변경할 때마다(예: 기존 파일 편집 또는 새 파일 생성) 프로젝트의 .sln 및 .csproj 파일을 다시 생성합니다. Visual Studio의 솔루션에 파일을 추가할 수도 있습니다. Unity는 모든 새 파일을 임포트하며, 다음 번에 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.