You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues such as #121 are caused by reflection lookups failing, but since these lookups are only (re)performed when the execution of a feature requires them, it makes things harder to debug, especially since there's no error checking/logging for these lookups, it is also slower to use reflection over and over.
Performing all lookups in a static constructor that does error checking (ex: type != null before attempting to lookup fields, printing an error with the lookup target when null) will help address Unity/dependency incompatibilities faster by printing the error on load rather than on feature use, eliminating the need to test every reflection-dependent feature individually and will also speed up execution, which may have considerable improvement for some GUI-based events.
The text was updated successfully, but these errors were encountered:
Issues such as #121 are caused by reflection lookups failing, but since these lookups are only (re)performed when the execution of a feature requires them, it makes things harder to debug, especially since there's no error checking/logging for these lookups, it is also slower to use reflection over and over.
Performing all lookups in a static constructor that does error checking (ex:
type != null
before attempting to lookup fields, printing an error with the lookup target when null) will help address Unity/dependency incompatibilities faster by printing the error on load rather than on feature use, eliminating the need to test every reflection-dependent feature individually and will also speed up execution, which may have considerable improvement for some GUI-based events.The text was updated successfully, but these errors were encountered: