Menu
VContainer
Getting Startedv1.5.9GitHub
VContainer
  • Getting Started
  • v1.5.9
  • GitHub
  • ABOUT
    • What is VContainer
    • What is DI ?
  • Getting Started
    • Installation
    • Hello World
  • Resolving
    • Constructor Injection
    • Method Injection
    • Property/Field Injection
  • Registering
    • Register Plain C# Type
    • Register Factory
    • Register MonoBehaviour
    • Register ScriptableObject
    • Register Callbacks
  • Integrations
    • Plain C# Entry point
    • UniTask
    • UniRx
    • ECS (beta)
  • Scoping
    • Lifetime Overview
    • Generate child scope via scene or prefab
    • Generate child scope with code first
    • Project root LifetimeScope
  • Container API
    • Use Container Directory
    • Implicit Relationship Types
  • Optimization
    • Pre IL Code Generation
    • Async Container Build
    • Parallel Container Build
  • Comparing to other libraries
    • Zenject

Register Callbacks

Container Build Callbacks#

You can register any arbitrary action to happen at container build time by registering a build callback.

builder.RegisterBuildCallback(container => ...)
Edit this page
Previous
Register ScriptableObject
Next
Plain C# Entry point
  • Container Build Callbacks