modesttree / Zenject

Dependency Injection Framework for Unity3D
MIT License
2.52k stars 273 forks source link

[Performance][Request] Enable/Disable settings for ZenjectStateMachineBehaviourAutoInjecter #38

Open legoritma opened 5 years ago

legoritma commented 5 years ago

Hi, We're currently heavily use animators however not using injection in animations. Zenject checs that animator has ZenjectStateMachineBehaviourAutoInjecter and Add if not (in AddStateMachineBehaviourAutoInjectersUnderGameObject method).

Is it possible add options for turn-off this controls?

svermeulen commented 5 years ago

Yes we can add a setting to disable this behaviour in ZenjectSettings