Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

SerializedProperty.InsertArrayElementAtIndex

InsertArrayElementAtIndex(index: int): void;
void InsertArrayElementAtIndex(int index);
def InsertArrayElementAtIndex(index as int) as void

Description

Insert an empty element at the specified index in the array.

The value of the inserted element is undefined and should be explicitly set after calling this function. See Also: isArray.