"Field is never assigned" warning and [Zenject.Inject]


Is there a way to exclude properties with Inject attribute from warnings? 

1 comment
Comment actions Permalink

Create an attribute that Inherits from Zenject.Inject. Then place [MeansImplicitUse] attribute on your custom attribute. Then use your custom attribute to mark fields and methods for injection.


Please sign in to leave a comment.