Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SerializedProperty.MoveArrayElement

Switch to Manual
public bool MoveArrayElement(int srcIndex, int dstIndex);

Parameters

Description

Move an array element from srcIndex to dstIndex.

The SerializedProperty must be pointed to an array.