MissingReferenceException: The object of type 'transform' has been destroyed hatası

  • Konuyu başlatan NOKS4N
  • Başlangıç Tarihi
  • Mesaj 1
  • Görüntüleme 1.104

NOKS4N

Femtopat
Katılım
1 Ekim 2020
Mesajlar
1
Karakter destroy olunca bu hata geldi. Hataya çift tıklayınca maincamerayı gösterdi. Acaba main cameradaki C# dosyasının içinde "Player = gameobject. Find("Player").Transform;" kodu olduğu için mi böyle bir hata aldım ve bunu nasıl düzeltebilirim?

Hatanın tamamı:

Kod:
MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.

Your script should either check if it is null or you should not destroy the object.

UnityEngine.Transform.get_position () (at <a9810827dce3444a8e5c4e9f3f5e0828>:0)

CameraFollow.LateUpdate () (at Assets/Scripts/CameraFollow.cs:28)
 
Uyarı! Bu konu 6 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Yeni konular

Geri
Yukarı