유니티를 비쥬얼 스튜디오와 디버깅 연결이 정상적으로 될 경우 위와 같이 나와야 합니다.
만약 Debug / Any CPU / Unity에 연결 ← 이렇게 나오지 않는다면 문제가 있습니다. 제가 한 방법 위주로 작성하겠습니다.
자세한 설치 내용은 다음과 같습니다. 2022 기준 개별 구성 요소에서 체크할 수 있습니다.
해당 문제를 해결하는 과정에서 여러가지 오류가 나왔었습니다.
그 중 기억이 남는 오류는 다음과 같았습니다.
3-1. 구글링한 흔적으로 찾은 오류 메시지이며 실제 메시지와 차이가 있을 수 있습니다.
https://www.reddit.com/r/Unity3D/comments/103saf9/how_do_i_run_202221f1_as_a_standard_user/
"Unity is running with Administrator privileges, which is not supported. Unity executes scripts and binary libraries in your project that may originate from third party sources and potentially be harmful to your computer. Unity may also execute scripts and binary libraries that are still under development and not yet fully tested. Running Unity with Administrator privileges may lead to catastrophic consequences, including but not limited to accidental data loss, change of global system settings or even bricking your device. "
유니티를 설치하고 제거하는 과정에서 발생한 오류로 2022.3.14f1(LTS) 버전에서 나타났습니다. 저의 경우는 2021.3.33f1(LTS) 버전으로 다운그레이드 했더니 해당 문제가 해결됐습니다. 댓글에서도 다운그레이드 했다는 내용이 있으니 한번 시도해보세요.
enter safe mode?
the project you are opening contains comlilation errors. Entering safe mode allows you to resolve these errors without waiting for the rest of your project to import, if you select ignore (not recommended), your project will continue to import, but it may be in a breken of unusable state.
Enter safe mode / ignore / quit
구글링한 결과 safe 모드 > 스크립트 오류 수정 및 저장 > 원래대로 돌아간다. 라는 말씀이 있는가 하면, safe 모드 상태에서 잘못 건들 경우 저장 내용이 날라가기 때문에 ignore을 클릭해야 된다는 말씀이 있었습니다. 저는 후자의 방법으로 했습니다. 스크립트 오류가 뜨는 이유를 잘 파악하지 못해서... 해당 프로젝트는 그냥 지우기도 했습니다.
구글링해도 문제가 해결되지 않는다면 이 글을 참조하세요!