TylerTemp / SaintsField

A Unity Inspector extension tool focusing on script fields inspector enhancement
MIT License
154 stars 9 forks source link

3.20 bug: [GetComponentInParent] no longer works #58

Closed laurentopia closed 1 month ago

laurentopia commented 1 month ago

I thought it was a base vs derived thing but when i switched to the derived class I saw that it didn't work at all image image and when I set it by hand: image so i verified the version number: image

laurentopia commented 1 month ago

GetComponentInChildren works tho

laurentopia commented 1 month ago

and [Required] works so the bug seems to be of parcouring the hierarchy upwards

TylerTemp commented 1 month ago

Hi,

Sorry it's not well documented: GetComponentInParent, is different from Unity's build-in one.

Try GetComponentInParents instead

laurentopia commented 1 month ago

ohhhhh i get it! thanks :D