더 정교한 C# 개발 환경을 얻을 수 있습니다. 스마트 자동 완성, 컴퓨터 보조 소스 파일 변경, 스마트 구문 하이라이트 등을 예로 들 수 있습니다.
VisualStudio C#은 Microsoft의 IDE(통합 개발 환경) 툴입니다. Visual Studio는 이제 Community(무료 사용), Professional(유료), Enterprise(유료)라는 세 가지 에디션으로 제공됩니다. 버전 간 기능 차이를 비교한 자료는 Visual Studio 웹사이트에서 확인할 수 있습니다.
Unity 에디터에 Visual Studio가 통합되어 Visual Studio 프로젝트 파일을 자동으로 생성하고 유지할 수 있습니다. Unity 콘솔에서 스크립트나 오류 메시지를 두 번 클릭해도 Visual Studio가 열립니다.
Unity 에디터에서 Visual Studio를 기본 IDE로 사용하도록 설정하려면 다음 절차를 따르십시오.
Unity 에디터에서 Edit > Preferences 로 이동하여 Visual Studio가 기본 외부 에디터로 선택되었는지 확인합니다.
다음으로, 프로젝트에서 C# 파일을 두 번 클릭합니다. Visual Studio에서 파일이 자동으로 열립니다.
파일을 편집한 후 저장하고 Unity로 다시 전환하여 변경 사항을 테스트합니다.
Visual Studio는 자체 C# 컴파일러와 함께 제공되고 이 컴파일러를 사용하여 C# 스크립트에 오류가 있는지 확인할 수 있지만, Unity 에디터는 아직도 자체 C# 컴파일러를 사용하여 스크립트를 컴파일합니다. Visual Studio 컴파일러를 사용하면 여전히 매우 유용합니다. 오류가 있는지 확인하기 위해 매번 Unity로 전환하지 않아도 되기 때문입니다.
Visual Studio의 C# 컴파일러에는 Unity 에디터의 C# 컴파일러에서 현재 지원되는 기능보다 많은 기능이 있습니다. 따라서 일부 코드(특히 새로운 C# 기능)는 Visual Studio에서 오류를 초래하지 않지만 Unity 에디터에서는 오류를 초래합니다.
Unity 에디터는 자동으로 Visual Studio .sln 및 .csproj 파일을 생성하고 유지합니다. 누군가 Unity 에디터 안에서 파일 추가/이름 변경/이동/삭제 작업을 수행할 때마다 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.