tarject
  • Documentation
    • Introduction
    • Installation
    • How to Contribute
    • How to Use
      • Context
        • ProjectContext
        • SceneContext
        • GameObjectContext
      • Installer
        • GameObjectInstaller
        • ObjectInstaller
      • Binding Methods
        • Bind
        • BindFromInstance
        • BindFromHierarchy
        • BindFactory
      • Binding Options
        • ToInterface
        • WithId
        • Lazy
      • Injecter
      • Factory
        • SeparatedGameObjectFactory
        • SeparatedObjectFactory
      • Interfaces
      • Signal Management
      • Test Framework
Powered by GitBook
On this page
  1. Documentation
  2. How to Use
  3. Installer

GameObjectInstaller

The installers in the scene must be derived from this class and referenced in any context in the scene.

Sample uses:

public class AppInstaller : GameObjectInstaller
{
    public override void Install(DIContainer container)
    {
       container.Bind<Foo>();

        FooInstaller.CreateAndInstall(container);
    }
}
internal class TarjectDemoSceneInstaller : GameObjectInstaller
{
    public override void Install(DIContainer container)
    {
        container.Bind<Foo>();

        FooInstaller.CreateAndInstall(container);
    }
}
PreviousInstallerNextObjectInstaller

Last updated 6 months ago