Skip to main content
Namespace: Molca
File: Assets/_Molca/_Core/Runtime/RuntimeManager.cs

Bootstrap

After scene load, static initialization loads Molca Project Settings, instantiates the configured RuntimeManager prefab, calls DontDestroyOnLoad, then runs async InitializeAsync: GlobalSettings load, subsystem discovery, service registration, scene-wide dependency injection, then IsReady.

Using from code

await RuntimeManager.WaitForInitialization();

Service API

Prefer GetService<T>() / TryGetService<T>(). For RuntimeSubsystem types, GetSubsystem<T>() still resolves the same instance but is labeled legacy in source comments. Also: RegisterService, BindService, RegisterFactory, InjectDependencies, InjectInto, CreateWithInjection, RunCoroutine, AwaitHandle / AwaitHandle<T> for Addressables.

Unity Editor

Runtime Manager Prefab