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 GameObject'in Tüm Child Nesnelerine Ulaşmak

Unity Rigidbody2D Yerçekimi Ayarlanması

Unity Bir Metodun Çağrılmasını İptal Etmek

Unity Header ve Space Özelliği Nedir?

Unity Bir Objeye Kodda Button Özelliği Ekleme