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.
1 parent 80da6e3 commit 66fadbcCopy full SHA for 66fadbc
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