Hi,
I noticed I get errors saying “Explicitly declare the type of either one to break the cycle” whenever I use recursion within a function. I am trying to create a function called “FindIn” since whenever I try to use “transform.Find()” on any GameObject, it doesn’t search the grandchildren and beyond for the given name, only the children, and if no children are found, it returns null. I noticed that only “GameObject.Find()” searches the children, the grandchildren etc until an object with the given name is found, but what about “transform.Find()”? I would like to use the Find function more than one time on a line of code that will recursively search beyond child objects.
Sincerely,
Michael S. Lowe