Closed laurentopia closed 1 month ago
and when I set a reference by hand to same-level it complains.
Hi,
By design GetComponentInChildren
does not get component from self, this is different from Unity (so as GetComponentInParent(s))
However I am planing to change this behavior to align with Unity (in the next release) as it is confusing. Also because in previous version we can use GetComponent
+ GetComponentInChildren
, but in last release they can no longer work together... So yeah it indeed needs to be changed.
Ok, good to know.
which is the latest version supporting getcomponent + getcomponentinchildren?
3.1.3 does
3.1.4 GetComponent* start to support array, which break the GetComponent
+ GetComponentInChildren
It used to. And GetComponentInChildren does that.![image](https://github.com/user-attachments/assets/73a3dfb3-c5b2-4d44-907a-5a79c38dfa03)