NaeBuka
Peter
Peter

patreon


[Unity Tip] Why FindObjectOfType returns null?

𝗙đ—ļđ—ģ𝗱đ—ĸđ—¯đ—ˇđ—˛đ—°đ˜đ—ĸđ—ŗđ—§đ˜†đ—Ŋ𝗲<..>() 🔍 method will đ—ŋ𝗲𝘁𝘂đ—ŋđ—ģ 𝗡𝗨𝗟𝗟  if the searched đ—ŧđ—¯đ—ˇđ—˛đ—°đ˜ is 𝗱đ—ļđ˜€đ—Žđ—¯đ—šđ—˛đ—ą in the hierarchy 😑

It can be really frustrating if you don't know it - especially since ex GetComponents<>() finds all the objects 👍🙂



More Creators