merpheus-dev / GetComponentAttribute

A simple DI plugin for getting MonoBehaviour components just with an attribute over fields.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Execution Order Management

merpheus-dev opened this issue · comments

Because of we can't change execution order, attribute getting tried to be filled before scene loads, this causes problems on instance objects, since they didn't even created in the first place.(Even instantiation happens on Awake() method, attribute gets called before that.)
So, NullRefException thrown by it then. Custom execution management is necessary for such cases.