Skip to content

Passing dynamic data + prefab through method Create (Factory) while that prefab has GameObjectContext #280

Open
@lucid-dreamm

Description

@lucid-dreamm

Hey, I would like to be able to pass dynamic data + prefab through method Create (Factory) while that prefab has GameObjectContext (Installer). In this situation, it seems zenject cannot inject dynamic data and it fails while without GameObjectContext, it works.

_factory.Create(prefab,data)

In scene context

  Container.BindFactory<Object, SpawnModuleData, ModuleFacade, ModuleFacade.Factory>()
                .FromFactory<PrefabFactory<SpawnModuleData, ModuleFacade>>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions