SakeTami
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