MudRetsu
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