SerializedProperty arrayProperty = serializedObject.FindProperty("myArray"); if (arrayProperty.isArray) { // Remove the element at index 2 arrayProperty.DeleteArrayElementAtIndex(2); // Apply the changes to the serialized object serializedObject.ApplyModifiedProperties(); }In this example, the serialized object contains an array property with the name "myArray". If this property is indeed an array, the third element (at index 2) is deleted using the `DeleteArrayElementAtIndex` method. Finally, the changes to the serialized object are applied using the `ApplyModifiedProperties` method. The `DeleteArrayElementAtIndex` method is part of the `UnityEditor` assembly, which is a built-in library provided by Unity for use within the Unity editor environment.