Unity-Dependency-Injection-Example
Unity-Dependency-Injection-Example copied to clipboard
ResolveSubset script doesn't work
after play the injection is still empty
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);
}
`