TylerTemp / SaintsField

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

GetComponentInParents/Children still shows error box when assigned #59

Open laurentopia opened 1 month ago

laurentopia commented 1 month ago

I think it's by design but it is not very useful to still show an error when the object was deparented and therefore the references component is no longer in the same hierarchy image

TylerTemp commented 1 month ago

Hummmm, so you mean, the MCUnityRelay can be used in different situations, in some case the Unit is in parents, some are not.

And if it's not, and when it's been manually assigned, the error message looks redundant, do I understand correctly?

TylerTemp commented 1 month ago

Well, GetComponentByPath has argument which uses EGetComp.ForceResign | EGetComp.NoResignButton to achive this feature. This is not implemented on other GetComponent* yet.

I think I might do this when I have some spare time

laurentopia commented 1 month ago

And if it's not, and when it's been manually assigned, the error message looks redundant, do I understand correctly?

that's right. since the attributes are used as a helper, not a nanny, the error message is overreaching.