Serialization.

RemoveArrayElement(SerializedProperty, int) Method

Summary

Removes the specified array element from the `property`.

Syntax

public static void RemoveArrayElement(SerializedProperty property, int index)

Remarks

If the element is not at its default value, the first call to UnityEditor.SerializedProperty.DeleteArrayElementAtIndex(System.Int32) will only reset it, so this method will call it again if necessary to ensure that it actually gets removed.

Parameters

Name Type Description
property SerializedProperty
index int

Return Value

Type Description
void