Legacy Documentation: Version 5.1
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 function MoveArrayElement(srcIndex: int, dstIndex: int): bool;

Parameters

Description

Move an array element from srcIndex to dstIndex.

The SerializedProperty must be pointed to an array.