An open API service indexing awesome lists of open source software.

https://github.com/konh/vcontainersample

Samples to cover VContainer basic usage
https://github.com/konh/vcontainersample

csharp dependency-injection sample unity vcontainer

Last synced: 11 months ago
JSON representation

Samples to cover VContainer basic usage

Awesome Lists containing this project

README

          

# VContainer Sample

Samples to cover VContainer (Unity DI framework) basic usage.

Features:
- Root level / scene lifetime scopes
- Entry points
- Lifetime callbacks
- Factories / custom registrations
- Disposables
- Codegen

Architecture layers:
- **Manager** - logics related to some gameplay scope, which uses services to perform required tasks
- **Scope** - composition roots for dependency injection
- **Service** - utilities to perform specific tasks
- **Starter** - entry points for each scene (no/minimal logics)
- **State** - persistant save data only
- **View** - MonoBehaviour components