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

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

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)
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…