hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.92k stars 167 forks source link

Updating 1.13.1 -> 1.15.4 breaks [Inject] to static method #664

Closed hagabooga closed 5 months ago

hagabooga commented 5 months ago

Hello, I have example class:

public partial class Example : IInitializable { public void Initialize() { // do something }

    [Inject]
    public static void StaticInit(Class1 example1, Class2 example2)
    {
        // do something with parameters
    }

}

In version 1.13.1, it works perfectly, but in 1.15.4, the static method with [Inject] attribute is never called.

Was there a change in the new update that I need to do or is this a bug?