Skip to main content

VContainer

18 tools in this family (folder Editor/Tools/VContainer/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
inject_create_scopewritesCreate a synthetic LifetimeScope under an optional parent. The scope is empty until
inject_detect_cycleread-onlyWalk a scope + its ancestors and look for circular dependencies. Returns the list of
inject_emit_async_startablewritesEmit a class implementing IAsyncStartable. Runs after the container is built but
inject_emit_factory_patternread-onlyEmit an IFactory<TProduct> + factory implementation that wraps IObjectResolver.Resolve.
inject_emit_injectable_classread-onlyEmit a POCO class whose constructor takes its declared dependencies. VContainer uses
inject_emit_injectable_mbread-onlyEmit a MonoBehaviour with a [Inject] public void Configure(...) method for VContainer
inject_emit_installerread-onlyEmit a reusable installer ScriptableObject (implements IInstaller). Drop the asset into
inject_emit_lifetime_scoperead-onlyEmit a LifetimeScope MonoBehaviour with a Configure(IContainerBuilder) override that
inject_emit_registration_blockread-onlyEmit just the builder.Register&lt;T&gt;(Lifetime.X).As&lt;I&gt;(); lines for a scope, without
inject_emit_tickablewritesEmit a class implementing one of VContainer's tickable interfaces: ITickable (Update),
inject_get_diagnosticsread-onlyReturn diagnostic counters: total/live scopes, total registrations, total resolves,
inject_get_versionread-onlyReturn the installed VContainer package version (if present) or a 'mock' sentinel
inject_initwritesInitialize the Buril VContainer runtime. Probes for the installed VContainer package
inject_install_package_hintread-onlyReturn install instructions for the VContainer package (OpenUPM scoped registry +
inject_list_registrationsread-onlyList every registration inside a scope. Use inject_list_scopes first to discover
inject_list_scopesread-onlyList every synthetic LifetimeScope (root + children) with status, parent, registration
inject_registerwritesRegister a service inside a scope: pick impl_type, one or more contract_types, a
inject_simulate_resolvewritesSimulate Resolve<T>() against a scope. Walks the scope → parent → root chain, returns