Skip to content

Commit

Permalink
Fixes GetInjectables skipping inactive components
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavopsantos committed Jan 10, 2023
1 parent d51853c commit 703166b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/Reflex/Scripts/Extensions/ComponentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal static IEnumerable<MonoBehaviour> GetInjectables<T>(this T component, M
{
case MonoInjectionMode.Single: return component.GetComponent<MonoBehaviour>().Yield();
case MonoInjectionMode.Object: return component.GetComponents<MonoBehaviour>();
case MonoInjectionMode.Recursive: return component.GetComponentsInChildren<MonoBehaviour>();
case MonoInjectionMode.Recursive: return component.GetComponentsInChildren<MonoBehaviour>(true);
default: throw new ArgumentOutOfRangeException(nameof(injectionMode), injectionMode, null);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Reflex/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.gustavopsantos.reflex",
"displayName": "Reflex",
"version": "3.5.2",
"version": "3.5.3",
"unity": "2019.3",
"description": "Minimal dependency injection framework for Unity",
"keywords": ["Dependency Injection", "IoC", "DI", "DI Container"],
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Reflex is an [Dependency Injection](https://stackify.com/dependency-injection/)

### Install via UPM (using Git URL)
```json
"com.gustavopsantos.reflex": "https://github.com/gustavopsantos/reflex.git?path=/Assets/Reflex/#3.5.2"
"com.gustavopsantos.reflex": "https://github.com/gustavopsantos/reflex.git?path=/Assets/Reflex/#3.5.3"
```

### Install manually (using .unitypackage)
Expand Down

0 comments on commit 703166b

Please sign in to comment.