TylerTemp / SaintsField

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

GetComponent etc need better error handling and report #42

Closed laurentopia closed 2 months ago

laurentopia commented 2 months ago

I'm getting this error and no idea what caused that. I must have added an attribute that's not compatible with something and it breaks Saints. Do you have an idea? image image

laurentopia commented 2 months ago

this is the component that, when expanded, causes this error. I used to have [GetComponentInParent] [GetComponent] public MCUnit unit; image

laurentopia commented 2 months ago

never mind... i had deleted a field reference to a component then forgot to remove [GetComponent] is it possible to spit out clear error messages?

TylerTemp commented 2 months ago

never mind... i had deleted a field reference to a component then forgot to remove [GetComponent] is it possible to spit out clear error messages?

Certainly. The GetComponent* utils are implemented in quite a short time so do not have a clearer error message (except GetComponentByPath, which handled many error cases already)

laurentopia commented 2 months ago

You're the best!!