Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] unable to bind generics in installer #293

Open
wes-kay opened this issue Feb 14, 2025 · 0 comments
Open

[Bug] unable to bind generics in installer #293

wes-kay opened this issue Feb 14, 2025 · 0 comments

Comments

@wes-kay
Copy link

wes-kay commented Feb 14, 2025

Describe the bug
Following this issue: https://stackoverflow.com/questions/45970666/zenject-install-generic-binding
I'm having the same bug with trying to bind a generic with installer

To Reproduce
Create a installer:

using UnityEngine;
using Zenject;

public class EntityHandlerInstaller : MonoInstaller
{
    public override void InstallBindings()
    {
         Container.Bind(typeof(IEntityHandlerSystem<>)).To(typeof(EntityHandlerSystem<>)).AsSingle();
    }
}         

Expected behavior
To use generics

Extenject and Unity info (please complete the following information):

  • Zenject version: Unity Plugin
  • Unity version: Unity 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant