Loading...
Searching...
No Matches
Baruah.UnityNexus.NexusInstaller Class Referenceabstract

Base class for Unity Nexus installers. Subclass this to register bindings and inject scene dependencies on Awake. More...

Protected Member Functions

void InstallBindings (DependencyContainer container)
 Override this to register all bindings into the container.
virtual void InjectSceneObjects (DependencyContainer container)
 Finds all IInjectable objects in the scene and calls Inject on them. Override to customise injection scope.

Properties

static DependencyContainer Container [get]
 The container built by this installer. Accessible statically for convenience, or inject it explicitly.

Detailed Description

Base class for Unity Nexus installers. Subclass this to register bindings and inject scene dependencies on Awake.

Usage:

  1. Create a class that extends NexusInstaller
  2. Override InstallBindings() and register your bindings
  3. Attach it to a GameObject in the scene (recommended: a dedicated _Installer object)

Definition at line 14 of file NexusInstaller.cs.


The documentation for this class was generated from the following file: