We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5284efb + 66fadbc commit c977ab9Copy full SHA for c977ab9
Scripts/Editor/Generators/CollectionGenerators.cs
@@ -268,7 +268,8 @@ private static void CopyFieldToSerializedProperty(
268
return;
269
270
// Get the property to copy the value to.
271
- serializedObject.TryFindProperty(field.Name, out SerializedProperty serializedProperty);
+ if(!serializedObject.TryFindProperty(field.Name, out SerializedProperty serializedProperty))
272
+ return;
273
274
object value = field.GetValue(owner);
275
0 commit comments