From 042c3b7220c6caa5db5c097822e54816d0f14043 Mon Sep 17 00:00:00 2001 From: David Svez Date: Mon, 3 Aug 2026 05:25:36 -0500 Subject: [PATCH] Skip indexed properties in generic editor --- Source/Editor/CustomEditors/Editors/GenericEditor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index ce8c8f749..113e6368b 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -270,6 +270,12 @@ namespace FlaxEditor.CustomEditors.Editors for (int i = 0; i < properties.Length; i++) { var p = properties[i]; + + // Indexed properties require arguments and cannot be represented by a normal property row. + // Trying to read one (for example IList.Item[index]) throws TargetParameterCountException. + if (p.Type is PropertyInfo managedProperty && managedProperty.GetIndexParameters().Length != 0) + continue; + var attributes = p.GetAttributes(true); var showInEditor = attributes.Any(x => x is ShowInEditorAttribute);