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.96k stars 172 forks source link

does it have a signalBus feature like zenject? #545

Closed virtouso closed 6 months ago

virtouso commented 1 year ago

i need to know is there a event dispatcher or signalbus with this container. i want to migrate from zenject to VContainer. is there any similar feature for that?

YegorStepanov commented 1 year ago

image

from here: https://vcontainer.hadashikick.jp/comparing/comparing-to-zenject

slimshader commented 10 months ago

Use MessagePipe which is superior to Zenject signales and has VContainter integration. Better yet, consider if you REALLY need signals/message que in your design.

AlonTalmi commented 10 months ago

I simply install IObservables and use UniRx

slimshader commented 10 months ago

I simply install IObservables and use UniRx

the only thing in UniRx that resembles Signals is IMessageBus, Rx is fantastic technolory but best for handling event streams not to integrate components (like injectable signales or event bus)

hadashiA commented 6 months ago

There are various paradigms for messaging systems, and the policy is not to build them into the DI container.

virtouso commented 6 months ago

i also figured out that unity has a builtin EventBus that works in same way as zenject signalBus. its always better to use builtin tools instead of bunch of plugins.

hadashiA commented 5 months ago

:memo:. The following are some of the libraries that integrate well with VContainer.