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.81k stars 157 forks source link

Add support for ScriptableObject collections #651

Closed jarrodspurrier closed 22 hours ago

jarrodspurrier commented 3 months ago

Currently, you can only register a single instance of a particular ScriptableObject type. Attempting to register multiple instances of the same type will result in a VContainerException: Conflict implementation type. I would love to be able to register multiple instances so that I can inject them as collections like everything else via IEnumerable or IReadOnlyList.

hadashiA commented 22 hours ago