Unity-Dependency-Injection-Example icon indicating copy to clipboard operation
Unity-Dependency-Injection-Example copied to clipboard

ResolveSubset script doesn't work

Open roymina opened this issue 6 years ago • 1 comments

screenshot after play the injection is still empty

roymina avatar Mar 11 '19 05:03 roymina

To fix this issue, in the DependencyResolver.cs script at line 496 - update the Resolve(GameObject parent) method as follow: ` public void Resolve(GameObject parent)

{

    var gameObjects = new List<GameObject> { parent };

    foreach (Transform childTransform in parent.transform)
        gameObjects.Add(childTransform.gameObject);

    Resolve(gameObjects);
}

`

EtienneCowley avatar Dec 09 '19 08:12 EtienneCowley