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