diff --git a/src/Assets/EcsRx/UnityEditor/Editor/EntityViewInspector.cs b/src/Assets/EcsRx/UnityEditor/Editor/EntityViewInspector.cs index 1bebc7e0..5edc9a28 100644 --- a/src/Assets/EcsRx/UnityEditor/Editor/EntityViewInspector.cs +++ b/src/Assets/EcsRx/UnityEditor/Editor/EntityViewInspector.cs @@ -19,9 +19,9 @@ public class EntityViewInspector : global::UnityEditor.Editor public bool showComponents; private readonly IEnumerable allComponentTypes = AppDomain.CurrentDomain.GetAssemblies() - .SelectMany(s => s.GetTypes()) - .Where(p => typeof(IComponent).IsAssignableFrom(p) && p.IsClass); - + .SelectMany(s => s.GetTypes()) + .Where(p => typeof(IComponent).IsAssignableFrom(p) && p.IsClass) + .ToArray(); private void PoolSection() {