Unity Visual Studio Debug Problemi

Unity 'deki projenizi Visual Studio 'da built etmeye çalıştığınızda hata alıyorsanız, aşağıdaki adımları izleyerek bu hatadan kurtulabilirsiniz.

İlk önce hatanın ne olduğunu görelim

A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.

Bu hatanın sebebi Unity Debugger 'ı Visual Studio 'ya Attach edememesidir.

Hatanın çözümü için aşağıdaki adımlar izlenmelidir.

  • 1 - Menuden "Debug" açılır.
  • 2 - "Attach Unity Debugger" seçilir.
  • 3 - Açılan menüdeki listeden projeniz seçilir ve OK 'e basılır.

Not : Bu hata genelde her zaman alınmaz. Eğer sürekli bu hata alınıyorsa, Visual Studio Updateleri kontrol edilmelidir.



İlginizi Çekebilir

Unity UI Toolkit Package Nasıl Install Edilir?

Unity Sprite Nedir?

Unity Audio Durdurmak (Pause)

Unity Ekranlar Arası Geçme

Unity Print Etmek