[Unity Tip] Why FindObjectOfType returns null? (Patreon)
Published:
2023-05-29 11:03:33
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Downloads
Missing 1 file, as this post has not yet been imported.
Content
𝗙𝗶𝗻𝗱𝗢𝗯𝗷𝗲𝗰𝘁𝗢𝗳𝗧𝘆𝗽𝗲<..>() 🔍 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 👍🙂