/// <summary> /// Moves an item within the list property. Is only called if toIndex is valid (I.e. not outside the list). /// <para>Can be overridden if not altering property directly or other logic is required.</para> /// </summary> /// <param name="listProperty"></param> /// <param name="listItemProperty"></param> /// <param name="fromIndex"></param> /// <param name="toIndex"></param> protected virtual void MoveTo(SerializedProperty listItemProperty, int fromIndex, int toIndex) { ListProperty.MoveArrayElement(fromIndex, toIndex); }